aboutsummaryrefslogtreecommitdiff
path: root/users/tdback/modules
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-20 19:46:26 -0500
committertdback <tyler@tdback.net>2025-01-20 19:46:26 -0500
commit4f9f1ec7392055fc7948611a7da7b70c7fdfa6c7 (patch)
tree3ad1af78740c01fda93bee6318c2e35ba26e139c /users/tdback/modules
parent97709964e4318d9226ca1188879e2b52b54771c4 (diff)
fix: need to explicitly enable mbsync and msmtp to generate configs
Diffstat (limited to 'users/tdback/modules')
-rw-r--r--users/tdback/modules/email/default.nix132
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>";
+ })
+ ];
+ };
+ };
}