From 4f9f1ec7392055fc7948611a7da7b70c7fdfa6c7 Mon Sep 17 00:00:00 2001 From: tdback Date: Mon, 20 Jan 2025 19:46:26 -0500 Subject: fix: need to explicitly enable mbsync and msmtp to generate configs --- users/tdback/modules/email/default.nix | 132 +++++++++++++++++---------------- 1 file changed, 68 insertions(+), 64 deletions(-) (limited to 'users/tdback/modules/email/default.nix') 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 = "=Inbox"; - }) - (mkAction { - key = "gs"; - action = "=Sent"; - }) - (mkAction { - key = "gd"; - action = "=Drafts"; - }) - (mkAction { - key = "gt"; - action = "=Trash"; - }) - (mkAction { - key = "ga"; - action = "=Archive"; - }) - (mkAction { - map = [ "index" ]; - key = "S"; - action = "${lib.getExe pkgs.isync} -a"; - }) - ]; - }; + 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 = "=Inbox"; + }) + (mkAction { + key = "gs"; + action = "=Sent"; + }) + (mkAction { + key = "gd"; + action = "=Drafts"; + }) + (mkAction { + key = "gt"; + action = "=Trash"; + }) + (mkAction { + key = "ga"; + action = "=Archive"; + }) + (mkAction { + map = [ "index" ]; + key = "S"; + action = "${lib.getExe pkgs.isync} -a"; + }) + ]; + }; + }; } -- cgit v1.2.3