From 5a5483a8f34dc953f7bd124190f2214b00c40311 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 15 Feb 2022 00:00:05 +0900 Subject: chore: mail fixup --- home/profiles/messaging/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/home/profiles/messaging/default.nix b/home/profiles/messaging/default.nix index 946bcb8..2d85fa6 100644 --- a/home/profiles/messaging/default.nix +++ b/home/profiles/messaging/default.nix @@ -3,6 +3,15 @@ let cfg = config.profiles.messaging; poorObfuscation = y: x: "${x}@${y}"; + mapKeys = map (x: + let + x' = lib.splitString " " x; + in + { + map = lib.splitString "," (lib.head x'); + key = lib.elemAt x' 1; + action = lib.last x'; + }); mailPass = x: "${pkgs.pass}/bin/pass show emails/${x}"; mbsyncCmd = "${config.programs.mbsync.package}/bin/mbsync"; in @@ -16,6 +25,8 @@ in config = lib.mkIf cfg.enable { accounts.email = { + maildirBasePath = "${config.home.homeDirectory}/mail"; + accounts.zach = { address = poorObfuscation "zachel.io" "zach"; gpg = { @@ -52,6 +63,7 @@ in }; }; + programs.abook.enable = true; programs.mbsync.enable = true; programs.msmtp.enable = true; programs.notmuch = { @@ -95,6 +107,9 @@ in include = "yes"; }; + # binds = mapKeys []; + # macros = mapKeys []; + extraConfig = '' # Default index colors: color index yellow default '.*' -- cgit 1.4.1