From af984fdfb43333f7ed25d281ca5befbd5bd15e56 Mon Sep 17 00:00:00 2001 From: sefidel Date: Wed, 22 Mar 2023 16:53:41 +0900 Subject: feat(communication): add all mailboxes --- home/profiles/communication/default.nix | 100 ++++++++++++++++++++++++++++++-- 1 file changed, 96 insertions(+), 4 deletions(-) (limited to 'home/profiles/communication/default.nix') 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; -- cgit 1.4.1