nixos/modules/common/applications/thunderbird.nix

38 lines
890 B
Nix

{ config, pkgs, lib, ... }:
{
options = {
thunderbird = {
enable = lib.mkEnableOption {
description = "Enable Thunderbird";
default = false;
};
};
};
config = lib.mkIf (config.gui.enable && config.thunderbird.enable) {
# tktkmodtchcslyirtlgj
home-manager.users.${config.user} = {
accounts.email.accounts = {
adhdgirl = {
userName = "";
realName = "Annika Merris";
address = "annika@adhdgirl.com";
imap = {
host = "imap.purelymail.com";
port = 993;
};
smtp = {
host = "smtp.purelymail.com";
port = 465;
};
thunderbird.enable = true;
};
};
programs.thunderbird = {
enable = true;
profiles = {
adhdgirl.isDefault = true;
};
};
};
};
}