diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-16 02:11:26 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-16 02:11:26 -0800 |
commit | 1a3486d77574c06b395ab6cda41084f5ed24a3f4 (patch) | |
tree | 69d1051bd14a0c3cb374f84a8c06cb655eba509b /nix/modules/home/msmtp.nix | |
parent | 2dff9d2b61244fed49136028d0e0f6ae3ae759cf (diff) |
modularized nix configuration; builds correctly
Diffstat (limited to 'nix/modules/home/msmtp.nix')
-rw-r--r-- | nix/modules/home/msmtp.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/nix/modules/home/msmtp.nix b/nix/modules/home/msmtp.nix index d965c18..6d69922 100644 --- a/nix/modules/home/msmtp.nix +++ b/nix/modules/home/msmtp.nix @@ -1,7 +1,8 @@ { lib, config, ... }: { - enable = lib.mkDefault config.monorepo.profiles.home.email.enable; - extraConfig = '' + programs.msmtp = { + enable = lib.mkDefault config.monorepo.profiles.email.enable; + extraConfig = '' # Set default values for all following accounts. defaults auth on @@ -12,14 +13,15 @@ # Gmail account ${config.monorepo.vars.userName} - host ${config.monorepo.profiles.home.email.smtpsServer} + host ${config.monorepo.profiles.email.smtpsServer} port 587 - from ${config.monorepo.profiles.home.email.email} - user ${config.monorepo.profiles.home.email.email} + from ${config.monorepo.profiles.email.email} + user ${config.monorepo.profiles.email.email} passwordeval "cat ${config.sops.secrets.mail.path}" # Set a default account account default : ${config.monorepo.vars.userName} ''; + }; } |