From 0f1e154c6d9bac84bb2390bd8c059e3b0532fbc0 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 30 Jun 2024 01:12:48 -0400 Subject: [PATCH] aly: add gmail and work email accounts --- homes/aly/mail/default.nix | 36 ++++++++++++++++++++++++++--- nixosModules/users/aly/default.nix | 4 ++++ secrets/mail/achacega_gmail.age | Bin 1259 -> 1222 bytes 3 files changed, 37 insertions(+), 3 deletions(-) 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 059a88b3e371b9455cab232080bfecf92072d00d..a5768a9250ffab62e2f5fd70271e39d8928c9783 100644 GIT binary patch literal 1222 zcmZY8%g(D*00m&9abWccPK+{B!}$-Fa%poC4HVh}v~Bj3oJpD{ z*2pL&zGfn8eA*mSc7VCa-T~1#+97QELZw5jmBXr5D5WmSV>ImiMYjw&Gs-W-MYWby zw^ei!%BQP|Q}RK;moziF-H~gH=HxtT01dAmK%!k^`;~E;=e2JYJ8)CfC{bfotH64< z+4=$KQmGQC)1WSdOKZmC3>u+|HiW~nCDlc4Zi(?!DV5=ObO6z0DoY`L)GqB_mI0KIkgi|>9yNDvvD1LW#busD>s0M9xVp)W!%&XfmUg{Qsmd!xo?mA7cp?f2 z7KvN1$8f_RQ(?Hba7-;`--$Gu;fJ_UIdXFj25ZiCVfa67*OXGkA!0Be20k&hvM;PN zUYzf@tjuWbP%h0VLM@_iZg&e-&fG4<6_gl}n^DKsClyz^-F<+%dp*d0oyJ8(-A9+5 z1SQzFkJ&8Sq>mh8@K-{ojjL@CQkz?ne-b=DM(gxyjm#m4mS9m?9qhLVgNbFY;N^@&@I9$a?EoMawm`J!awgqVw!jz6$uhxV#H=Zl+ z&XXE8IcN_~l*5L*P&l=aq)kMe@EaTlS;9F&&H2!1G}?1>v+mNCEP-a{0Ir@F_3!|f zj>8*3)ZBNAxPmu_w0s@&L>ifJ8G+K^PHfW$bTand~rxP=w)ZL#Y2NAK=%2X`G- zEuifIVrdzA&jm(GHSyj`I@ZIZMpPa}4Tu*dq~H`%dDjKLRlI0_wr+UjT1i|ONMW;5Hs1cQm$lJiWyL7dJF*+VsXeWkJ>gnB{vh1>uACW zi0(%$z19#71KJ$>Fvd1n&&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