about summary refs log tree commit diff
path: root/home/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'home/profiles')
-rw-r--r--home/profiles/communication/default.nix100
1 files changed, 96 insertions, 4 deletions
diff --git a/home/profiles/communication/default.nix b/home/profiles/communication/default.nix
index d5ef2da..4f4be20 100644
--- a/home/profiles/communication/default.nix
+++ b/home/profiles/communication/default.nix
@@ -32,7 +32,53 @@ in
       accounts.email = {
         maildirBasePath = "${config.home.homeDirectory}/mail";
 
-        accounts.sef = {
+        accounts.sefidel-net = {
+          address = poorObfuscation "sefidel.net" "contact";
+          # gpg = {
+          #   key = "";
+          #   signByDefault = true;
+          # };
+
+          imap.host = "mail.exotic.sh";
+          imap.tls.enable = true;
+          smtp.host = "mail.exotic.sh";
+          smtp.tls.enable = true;
+
+          mbsync = {
+            enable = true;
+            create = "maildir";
+            remove = "none";
+            expunge = "both";
+          };
+
+          msmtp.enable = true;
+          notmuch.enable = true;
+          neomutt.enable = true;
+          neomutt.mailboxName = "sefidel-net";
+          neomutt.extraMailboxes = [
+            # "Archive"
+            "Drafts"
+            "Junk"
+            "Sent"
+            # "Trash"
+          ];
+
+          imapnotify = {
+            enable = true;
+            boxes = [ "Inbox" ];
+            onNotify = pkgs.writeShellScript "imap-on-notify" ''
+              ${mbsyncCmd} sefidel-net
+              ${pkgs.notmuch}/bin/notmuch new
+            '';
+          };
+
+          primary = true;
+          realName = "sefidel";
+          userName = poorObfuscation "sefidel.net" "contact";
+          passwordCommand = "${pkgs.coreutils}/bin/cat ${fixSopsPrefix 1000 config.sops.secrets.sef-email-password.path}";
+        };
+        # TODO: remove
+        accounts.sefidel-com = {
           address = poorObfuscation "sefidel.com" "contact";
           # gpg = {
           #   key = "";
@@ -54,7 +100,7 @@ in
           msmtp.enable = true;
           notmuch.enable = true;
           neomutt.enable = true;
-          neomutt.mailboxName = "sef";
+          neomutt.mailboxName = "sefidel-com";
           neomutt.extraMailboxes = [
             "Archive"
             "Drafts"
@@ -67,16 +113,62 @@ in
             enable = true;
             boxes = [ "Inbox" ];
             onNotify = pkgs.writeShellScript "imap-on-notify" ''
-              ${mbsyncCmd} sef
+              ${mbsyncCmd} sefidel-com
               ${pkgs.notmuch}/bin/notmuch new
             '';
           };
 
-          primary = true;
+          primary = false;
           realName = "sefidel";
           userName = poorObfuscation "sefidel.com" "contact";
           passwordCommand = "${pkgs.coreutils}/bin/cat ${fixSopsPrefix 1000 config.sops.secrets.sef-email-password.path}";
         };
+        accounts.exotic-sh = {
+          address = poorObfuscation "exotic.sh" "sef";
+          # gpg = {
+          #   key = "";
+          #   signByDefault = true;
+          # };
+
+          imap.host = "mail.exotic.sh";
+          imap.tls.enable = true;
+          smtp.host = "mail.exotic.sh";
+          smtp.tls.enable = true;
+
+          mbsync = {
+            enable = true;
+            create = "maildir";
+            remove = "none";
+            expunge = "both";
+          };
+
+          msmtp.enable = true;
+          notmuch.enable = true;
+          neomutt.enable = true;
+          neomutt.mailboxName = "exotic-sh";
+          neomutt.extraMailboxes = [
+            # "Archive"
+            "Drafts"
+            "Junk"
+            "Sent"
+            # "Trash"
+          ];
+
+          imapnotify = {
+            enable = true;
+            boxes = [ "Inbox" ];
+            onNotify = pkgs.writeShellScript "imap-on-notify" ''
+              ${mbsyncCmd} exotic-sh
+              ${pkgs.notmuch}/bin/notmuch new
+            '';
+          };
+
+          primary = false;
+          realName = "sefidel";
+          userName = poorObfuscation "exotic.sh" "sef";
+          passwordCommand = "${pkgs.coreutils}/bin/cat ${fixSopsPrefix 1000 config.sops.secrets.sef-email-password.path}";
+        };
+
       };
 
       programs.abook.enable = true;