about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-07-20 02:13:37 +0900
committersefidel <contact@sefidel.net>2023-07-20 02:13:37 +0900
commit2728393ce6bb3e5f24805ddaf9dd7ce47b49c208 (patch)
treecccbf4292237a5355d55ab099903e04be0d4a302
parent917c896e9da88f7c66b4ddee7a08b8ab95e5dfe2 (diff)
downloadnixrc-2728393ce6bb3e5f24805ddaf9dd7ce47b49c208.tar.gz
nixrc-2728393ce6bb3e5f24805ddaf9dd7ce47b49c208.zip
fix(profiles/communication): fix neomutt Encrypt-to-Self
-rw-r--r--home/profiles/communication/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/home/profiles/communication/default.nix b/home/profiles/communication/default.nix
index 4c46b83..59fdc1f 100644
--- a/home/profiles/communication/default.nix
+++ b/home/profiles/communication/default.nix
@@ -34,10 +34,10 @@ in
 
         accounts.sefidel-net = {
           address = poorObfuscation "sefidel.net" "contact";
-          # gpg = {
-          #   key = "";
-          #   signByDefault = true;
-          # };
+          gpg = {
+            key = "8BDFDFB56842239382A0441B9238BC709E05516A";
+            signByDefault = true;
+          };
 
           imap.host = "mail.exotic.sh";
           imap.tls.enable = true;
@@ -217,6 +217,10 @@ in
           # edit headers in editor
           autoedit = "yes";
           edit_headers = "yes";
+
+          # fix Encrypt-to-Self, required by `pgp_self_encrypt`
+          # TODO: use key from primary account (don't hardcode)
+          pgp_default_key = config.accounts.email.accounts.sefidel-net.gpg.key;
         };
 
         binds = mapKeys [