From 1e871d1b2ae79a2aa37d0dbb9db72bf14b379036 Mon Sep 17 00:00:00 2001 From: sefidel Date: Thu, 2 Feb 2023 02:38:17 +0900 Subject: feat(profiles/messaging): init 'sef' --- home/profiles/messaging/default.nix | 51 ++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) (limited to 'home/profiles/messaging') diff --git a/home/profiles/messaging/default.nix b/home/profiles/messaging/default.nix index a016aa0..14b31a1 100644 --- a/home/profiles/messaging/default.nix +++ b/home/profiles/messaging/default.nix @@ -28,6 +28,55 @@ in accounts.email = { maildirBasePath = "${config.home.homeDirectory}/mail"; + accounts.sef = { + address = poorObfuscation "sefidel.com" "contact"; + # gpg = { + # key = ""; + # signByDefault = true; + # }; + + imap.host = "imap.migadu.com"; + imap.tls.enable = true; + smtp.host = "smtp.migadu.com"; + smtp.tls.enable = true; + + mbsync = { + enable = true; + create = "maildir"; + remove = "none"; + expunge = "both"; + + extraConfig.account.SSLType = "IMAPS"; + extraConfig.account.SSLVersions = "TLSv1.2"; + }; + + msmtp.enable = true; + notmuch.enable = true; + neomutt.enable = true; + neomutt.mailboxName = "sef"; + neomutt.extraMailboxes = [ + "Archive" + "Drafts" + "Junk" + "Sent" + "Trash" + ]; + + imapnotify = { + enable = true; + boxes = [ "Inbox" ]; + onNotify = pkgs.writeShellScript "imap-on-notify" '' + ${mbsyncCmd} sef + ${pkgs.notmuch}/bin/notmuch new + ''; + }; + + primary = true; + realName = "***REMOVED***"; + userName = poorObfuscation "sefidel.com" "contact"; + passwordCommand = mailPass "sef"; + }; + accounts.zach = { address = poorObfuscation "zachel.io" "zach"; gpg = { @@ -71,7 +120,7 @@ in ''; }; - primary = true; + primary = false; realName = "zachel"; userName = poorObfuscation "zachel.io" "zach"; passwordCommand = mailPass "zach"; -- cgit 1.4.1