nixcfg/homes/aly/mail/default.nix

99 lines
2.7 KiB
Nix
Raw Normal View History

2024-06-29 12:04:53 -04:00
{
config,
lib,
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;
passwordCommand = mkPassword config.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
2024-09-17 21:31:31 -04:00
https://aly.raffauflabs.com
2024-06-30 18:44:39 -04:00
'';
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;
passwordCommand = mkPassword config.age.secrets.achacegaGmail.path;
2024-06-30 01:12:48 -04:00
realName = "Aly Raffauf";
2024-06-30 18:44:39 -04:00
signature = {
text = ''
--
Aly Raffauf (née Chace)
'';
2024-07-10 23:43:51 -04:00
showSignature = "append";
2024-06-30 18:44:39 -04:00
};
2024-06-30 01:12:48 -04:00
thunderbird = {
enable = true;
profiles = ["default"];
};
userName = "achacega@gmail.com";
};
2024-06-29 12:04:53 -04:00
};
programs = {
himalaya.enable = true;
thunderbird = {
enable = true;
profiles.default = {
isDefault = true;
2024-07-11 19:49:01 -04:00
settings = {
"calendar.timezone.useSystemTimezone" = true;
"datareporting.healthreport.uploadEnabled" = false;
2024-09-14 19:51:47 -04:00
"mail.tabs.drawInTitlebar" = true;
2024-07-11 19:49:01 -04:00
"mailnews.default_sort_order" = 2; # descending, 1 for ascending
"mailnews.default_sort_type" = 18; # sort by date
"mailnews.message_display.disable_remote_image" = false;
2024-09-24 23:15:08 -04:00
"mailnews.start_page.enabled" = false;
2024-07-11 19:49:01 -04:00
"network.cookie.cookieBehavior" = 2; # no cookies
"pdfjs.enabledCache.state" = true;
"privacy.donottrackheader.enabled" = true;
"privacy.fingerprintingProtection" = true;
"privacy.firstparty.isolate" = true;
"privacy.purge_trackers.date_in_cookie_database" = "0";
"privacy.resistFingerprinting" = true;
"privacy.trackingprotection.emailtracking.enabled" = true;
"privacy.trackingprotection.enabled" = true;
"privacy.trackingprotection.fingerprinting.enabled" = true;
"privacy.trackingprotection.socialtracking.enabled" = true;
"svg.context-properties.content.enabled" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
2024-07-11 19:49:01 -04:00
"toolkit.telemetry.enabled" = false;
};
2024-06-29 12:04:53 -04:00
};
};
};
}