From 1a3486d77574c06b395ab6cda41084f5ed24a3f4 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 16 Jan 2025 02:11:26 -0800 Subject: modularized nix configuration; builds correctly --- nix/modules/home/msmtp.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'nix/modules/home/msmtp.nix') 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} ''; + }; } -- cgit