diff options
-rw-r--r-- | hosts/home.nix | 2 | ||||
-rw-r--r-- | modules/email/default.nix | 11 | ||||
-rw-r--r-- | secrets/default.nix | bin | 598 -> 629 bytes |
3 files changed, 8 insertions, 5 deletions
diff --git a/hosts/home.nix b/hosts/home.nix index 818a0a6..9bd5f9d 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -113,7 +113,7 @@ smtpserverport = "587"; smtpencryption = "tls"; smtpuser = "manuelpalenzuelamerino@gmail.com"; - smtpPass = secrets.git.email.password; + smtpPass = secrets.email."manuelpalenzuelamerino@gmail.com".password; }; }; }; diff --git a/modules/email/default.nix b/modules/email/default.nix index ba4e23b..54f9103 100644 --- a/modules/email/default.nix +++ b/modules/email/default.nix @@ -1,7 +1,10 @@ { config, pkgs, lib, secrets, ... }: { services = { - mbsync.enable = true; + mbsync = { + enable = true; + postExec = "${pkgs.notmuch}/bin/notmuch new"; + }; imapnotify.enable = false; }; @@ -54,7 +57,7 @@ enable = true; /*extraConfig = '' set imap_user = 'manuelpalenzuelamerino@gmail.com' - set imap_pass = '${secrets.git.email.password}' + set imap_pass = '${secrets.email."manuelpalenzuelamerino@gmail.com".password}' set spoolfile = imaps://imap.gmail.com/INBOX set folder = imaps://imap.gmail.com/ set record="imaps://imap.gmail.com/[Gmail]/Sent Mail" @@ -63,11 +66,11 @@ # ================ SMTP ==================== set smtp_url = "smtp://manuelpalenzuelamerino@smtp.gmail.com:587/" - set smtp_pass = ${secrets.git.email.password} + set smtp_pass = ${secrets.email."manuelpalenzuelamerino@gmail.com".password} set ssl_force_tls = yes # Require encrypted connection '';*/ }; - passwordCommand = "${pkgs.coreutils}/bin/echo ${secrets.git.email.password}"; + passwordCommand = "${pkgs.coreutils}/bin/echo ${secrets.email."manuelpalenzuelamerino@gmail.com".password}"; }; }; }; diff --git a/secrets/default.nix b/secrets/default.nix index cec0392..b5bddbc 100644 --- a/secrets/default.nix +++ b/secrets/default.nix Binary files differ |