about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-27 13:43:28 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-09-29 13:46:57 +0200
commite07811fcf6a5fc7a9910c125967595177bba1de1 (patch)
treeb24c56188beee4965d08b4a668f06a9553cbba82
parentUpdate (diff)
downloadnixos-config-e07811fcf6a5fc7a9910c125967595177bba1de1.tar.gz
nixos-config-e07811fcf6a5fc7a9910c125967595177bba1de1.tar.bz2
nixos-config-e07811fcf6a5fc7a9910c125967595177bba1de1.zip
Fmt
-rw-r--r--hosts/home.nix2
-rw-r--r--modules/email/default.nix11
-rw-r--r--secrets/default.nixbin598 -> 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