nixcfg/homes/aly/mail/default.nix

38 lines
762 B
Nix
Raw Normal View History

2024-06-29 12:04:53 -04:00
{
config,
lib,
osConfig,
pkgs,
...
}: let
genPassword = secret: "${lib.getExe' pkgs.coreutils "cat"} ${secret}";
in {
accounts.email.accounts = {
fastmail = {
address = "alyraffauf@fastmail.com";
aliases = ["aly@raffauflabs.com"];
flavor = "fastmail.com";
passwordCommand = genPassword osConfig.age.secrets.alyraffaufFastmail.path;
primary = true;
realName = "Aly Raffauf";
thunderbird = {
enable = true;
profiles = ["default"];
};
userName = "alyraffauf@fastmail.com";
himalaya.enable = true;
};
};
programs = {
himalaya.enable = true;
thunderbird = {
enable = true;
profiles.default = {
isDefault = true;
};
};
};
}