diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-27 13:43:28 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-09-29 13:46:57 +0200 |
commit | f5154f2059304dbb38dd98c1ec2fd7b6df14bf9d (patch) | |
tree | 53fb10270912ad7e7da747e33563c58648acae82 | |
parent | Update (diff) | |
download | nixos-config-f5154f2059304dbb38dd98c1ec2fd7b6df14bf9d.tar.gz nixos-config-f5154f2059304dbb38dd98c1ec2fd7b6df14bf9d.tar.bz2 nixos-config-f5154f2059304dbb38dd98c1ec2fd7b6df14bf9d.zip |
Fmt
-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 |