aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/home/msmtp.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules/home/msmtp.nix')
-rw-r--r--nix/modules/home/msmtp.nix12
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}
'';
+ };
}