about summary refs log tree commit diff
path: root/home/profiles/communication
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-03-22 16:53:41 +0900
committersefidel <contact@sefidel.net>2023-03-22 16:53:41 +0900
commitaf984fdfb43333f7ed25d281ca5befbd5bd15e56 (patch)
tree6b2e9e0eebd59e8b344d934cf66e74f3d46fd06a /home/profiles/communication
parentad97446d066b3306ca3048d8556f5a7311d55531 (diff)
downloadnixrc-af984fdfb43333f7ed25d281ca5befbd5bd15e56.tar.gz
nixrc-af984fdfb43333f7ed25d281ca5befbd5bd15e56.zip
feat(communication): add all mailboxes
Diffstat (limited to 'home/profiles/communication')
-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;