diff options
Diffstat (limited to 'home/profiles/messaging/default.nix')
-rw-r--r-- | home/profiles/messaging/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
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 '.*' |