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";
|
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 01:12:48 -04:00
|
|
|
|
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";
|
|
|
|
|
|
|
|
thunderbird = {
|
|
|
|
enable = true;
|
|
|
|
profiles = ["default"];
|
|
|
|
};
|
|
|
|
|
|
|
|
userName = "achacega@gmail.com";
|
|
|
|
};
|
|
|
|
|
|
|
|
"aly.chace@joingsg.com" = {
|
|
|
|
address = "aly.chace@joingsg.com";
|
|
|
|
flavor = "gmail.com";
|
|
|
|
realName = "Aly Raffauf";
|
|
|
|
|
|
|
|
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-06-29 16:45:32 -04:00
|
|
|
profiles = {
|
|
|
|
default.isDefault = true;
|
|
|
|
work = {};
|
2024-06-29 12:04:53 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-06-29 16:45:32 -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
|
|
|
}
|