diff options
Diffstat (limited to 'users/tdback')
-rw-r--r-- | users/tdback/modules/email/default.nix | 132 |
1 files changed, 68 insertions, 64 deletions
diff --git a/users/tdback/modules/email/default.nix b/users/tdback/modules/email/default.nix index 37534db..123fa50 100644 --- a/users/tdback/modules/email/default.nix +++ b/users/tdback/modules/email/default.nix @@ -52,68 +52,72 @@ in services.mbsync.enable = true; - programs.neomutt = - let - mkAction = - { - key, - action, - map ? [ - "index" - "pager" - ], - }: - { - inherit key action map; - }; - in - { - enable = true; - package = pkgs.unstable.neomutt; - vimKeys = true; - sort = "reverse-date"; - checkStatsInterval = 60; - sidebar.enable = true; - binds = [ - (mkAction { - key = "\\Cp"; - action = "sidebar-prev"; - }) - (mkAction { - key = "\\Cn"; - action = "sidebar-next"; - }) - (mkAction { - key = "\\Cy"; - action = "sidebar-open"; - }) - ]; - macros = [ - (mkAction { - key = "gi"; - action = "<change-folder>=Inbox<enter>"; - }) - (mkAction { - key = "gs"; - action = "<change-folder>=Sent<enter>"; - }) - (mkAction { - key = "gd"; - action = "<change-folder>=Drafts<enter>"; - }) - (mkAction { - key = "gt"; - action = "<change-folder>=Trash<enter>"; - }) - (mkAction { - key = "ga"; - action = "<change-folder>=Archive<enter>"; - }) - (mkAction { - map = [ "index" ]; - key = "S"; - action = "<shell-escape>${lib.getExe pkgs.isync} -a<enter>"; - }) - ]; - }; + programs = { + mbsync.enable = true; + msmtp.enable = true; + neomutt = + let + mkAction = + { + key, + action, + map ? [ + "index" + "pager" + ], + }: + { + inherit key action map; + }; + in + { + enable = true; + package = pkgs.unstable.neomutt; + vimKeys = true; + sort = "reverse-date"; + checkStatsInterval = 60; + sidebar.enable = true; + binds = [ + (mkAction { + key = "\\Cp"; + action = "sidebar-prev"; + }) + (mkAction { + key = "\\Cn"; + action = "sidebar-next"; + }) + (mkAction { + key = "\\Cy"; + action = "sidebar-open"; + }) + ]; + macros = [ + (mkAction { + key = "gi"; + action = "<change-folder>=Inbox<enter>"; + }) + (mkAction { + key = "gs"; + action = "<change-folder>=Sent<enter>"; + }) + (mkAction { + key = "gd"; + action = "<change-folder>=Drafts<enter>"; + }) + (mkAction { + key = "gt"; + action = "<change-folder>=Trash<enter>"; + }) + (mkAction { + key = "ga"; + action = "<change-folder>=Archive<enter>"; + }) + (mkAction { + map = [ "index" ]; + key = "S"; + action = "<shell-escape>${lib.getExe pkgs.isync} -a<enter>"; + }) + ]; + }; + }; } |