nixcfg/homes/aly/mail/default.nix

118 lines
2.7 KiB
Nix
Raw Normal View History

2024-06-29 12:04:53 -04:00
{
config,
lib,
osConfig,
pkgs,
...
}: let
2024-06-30 01:12:48 -04:00
mkPassword = secret: "${lib.getExe' pkgs.coreutils "cat"} ${secret}";
2024-06-29 12:04:53 -04:00
in {
accounts.email.accounts = {
2024-06-30 01:12:48 -04:00
"alyraffauf@fastmail.com" = {
2024-06-29 12:04:53 -04:00
address = "alyraffauf@fastmail.com";
aliases = ["aly@raffauflabs.com"];
flavor = "fastmail.com";
himalaya.enable = true;
2024-06-30 01:12:48 -04:00
passwordCommand = mkPassword osConfig.age.secrets.alyraffaufFastmail.path;
2024-06-29 12:04:53 -04:00
primary = true;
realName = "Aly Raffauf";
2024-06-30 18:44:39 -04:00
signature = {
text = ''
Thank you,
Aly Raffauf
https://aly.RaffaufLabs.com
https://alyraffauf.github.com
'';
showSignature = "append";
};
2024-06-29 12:04:53 -04:00
thunderbird = {
enable = true;
profiles = ["default"];
};
2024-06-30 01:12:48 -04:00
2024-06-29 12:04:53 -04:00
userName = "alyraffauf@fastmail.com";
2024-06-30 01:12:48 -04:00
};
"achacega@gmail.com" = {
address = "achacega@gmail.com";
aliases = ["alyraffauf@gmail.com"];
flavor = "gmail.com";
2024-06-29 12:04:53 -04:00
himalaya.enable = true;
2024-06-30 01:12:48 -04:00
passwordCommand = mkPassword osConfig.age.secrets.achacegaGmail.path;
realName = "Aly Raffauf";
2024-06-30 18:44:39 -04:00
signature = {
text = ''
--
Aly Raffauf (née Chace)
'';
};
2024-06-30 01:12:48 -04:00
thunderbird = {
enable = true;
profiles = ["default"];
};
userName = "achacega@gmail.com";
};
"aly.chace@joingsg.com" = {
address = "aly.chace@joingsg.com";
flavor = "gmail.com";
realName = "Aly Raffauf";
2024-06-30 18:44:39 -04:00
signature = {
text = ''
Aly Raffauf (née Chace)
Content Operations Specialist 1
Global Savings Group
'';
showSignature = "append";
};
2024-06-30 01:12:48 -04:00
thunderbird = {
enable = true;
profiles = ["work"];
};
userName = "aly.chace@joingsg.com";
2024-06-29 12:04:53 -04:00
};
};
programs = {
himalaya.enable = true;
thunderbird = {
enable = true;
2024-07-02 14:44:02 -04:00
profiles = let
settings = {"mailnews.message_display.disable_remote_image" = false;};
in {
default = {
inherit settings;
isDefault = true;
};
work = {inherit settings;};
2024-06-29 12:04:53 -04:00
};
};
};
xdg.desktopEntries.thunderwork = {
categories = ["Application" "Network" "Chat" "Email" "Feed" "GTK" "News"];
exec = "thunderbird -P work --name thunderwork %U";
comment = "Read and write e-mails or RSS feeds, or manage tasks on calendars.";
genericName = "Email Client";
icon = "thunderbird";
mimeType = ["message/rfc822" "x-scheme-handler/mailto" "text/calendar" "text/x-vcard"];
name = "Thunderbird (work)";
startupNotify = true;
terminal = false;
settings = {
StartupWMClass = "thunderwork";
};
};
2024-06-29 12:04:53 -04:00
}