about summary refs log tree commit diff
path: root/home
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-02 02:38:17 +0900
committersefidel <contact@sefidel.net>2023-02-02 02:38:51 +0900
commit1e871d1b2ae79a2aa37d0dbb9db72bf14b379036 (patch)
treee03df1aab721e3bd93ed2a4b18af5feeb761fdc6 /home
parent1267d795c02071e34d87d6f970967f23ddbfdb2e (diff)
downloadnixrc-1e871d1b2ae79a2aa37d0dbb9db72bf14b379036.tar.gz
nixrc-1e871d1b2ae79a2aa37d0dbb9db72bf14b379036.zip
feat(profiles/messaging): init 'sef'
Diffstat (limited to 'home')
-rw-r--r--home/profiles/base/default.nix2
-rw-r--r--home/profiles/messaging/default.nix51
2 files changed, 52 insertions, 1 deletions
diff --git a/home/profiles/base/default.nix b/home/profiles/base/default.nix
index e1e895e..1919708 100644
--- a/home/profiles/base/default.nix
+++ b/home/profiles/base/default.nix
@@ -260,6 +260,8 @@ in
         defaultCacheTtlSsh = 3600;
         maxCacheTtl = 86400;
         maxCacheTtlSsh = 86400;
+        enableSshSupport = true;
+        sshKeys = [ "3C79004101E524D10B94F9EE9D3744F4B25F8795" ];
         extraConfig = ''
           allow-preset-passphrase
         '';
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";