diff options
author | sefidel <contact@sefidel.net> | 2022-02-15 00:00:05 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2022-02-15 00:00:05 +0900 |
commit | 5a5483a8f34dc953f7bd124190f2214b00c40311 (patch) | |
tree | 669691133d84da9c9894045f1a76ad184402a4ca /home/profiles/messaging | |
parent | 945418bebffca98f658e726da3100a5b4a6bb51c (diff) | |
download | nixrc-5a5483a8f34dc953f7bd124190f2214b00c40311.tar.gz nixrc-5a5483a8f34dc953f7bd124190f2214b00c40311.zip |
chore: mail fixup
Diffstat (limited to 'home/profiles/messaging')
-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 '.*' |