diff --git a/homes/aly/mail/default.nix b/homes/aly/mail/default.nix index 8be6acd5..b1a9210c 100644 --- a/homes/aly/mail/default.nix +++ b/homes/aly/mail/default.nix @@ -5,22 +5,52 @@ pkgs, ... }: let - genPassword = secret: "${lib.getExe' pkgs.coreutils "cat"} ${secret}"; + mkPassword = secret: "${lib.getExe' pkgs.coreutils "cat"} ${secret}"; in { accounts.email.accounts = { - fastmail = { + "alyraffauf@fastmail.com" = { address = "alyraffauf@fastmail.com"; aliases = ["aly@raffauflabs.com"]; flavor = "fastmail.com"; - passwordCommand = genPassword osConfig.age.secrets.alyraffaufFastmail.path; + passwordCommand = mkPassword osConfig.age.secrets.alyraffaufFastmail.path; primary = true; realName = "Aly Raffauf"; + thunderbird = { enable = true; profiles = ["default"]; }; + userName = "alyraffauf@fastmail.com"; + }; + + "achacega@gmail.com" = { + address = "achacega@gmail.com"; + aliases = ["alyraffauf@gmail.com"]; + flavor = "gmail.com"; himalaya.enable = true; + 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"; }; }; diff --git a/nixosModules/users/aly/default.nix b/nixosModules/users/aly/default.nix index c073d824..70471a54 100644 --- a/nixosModules/users/aly/default.nix +++ b/nixosModules/users/aly/default.nix @@ -10,6 +10,10 @@ file = ../../../secrets/mail/alyraffauf_fastmail.age; owner = "aly"; }; + achacegaGmail = { + file = ../../../secrets/mail/achacega_gmail.age; + owner = "aly"; + }; }; home-manager.users.aly = diff --git a/secrets/mail/achacega_gmail.age b/secrets/mail/achacega_gmail.age index 059a88b3..a5768a92 100644 Binary files a/secrets/mail/achacega_gmail.age and b/secrets/mail/achacega_gmail.age differ