nixos/modules/common/applications/thunderbird.nix

34 lines
814 B
Nix

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