From 0a5754541bb01e96021ca7ee74f1256a8ee68bc4 Mon Sep 17 00:00:00 2001 From: tdback Date: Sat, 21 Dec 2024 15:32:13 -0500 Subject: initial commit to self-hosted git --- users/tdback/modules/neomutt/default.nix | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 users/tdback/modules/neomutt/default.nix (limited to 'users/tdback/modules/neomutt') diff --git a/users/tdback/modules/neomutt/default.nix b/users/tdback/modules/neomutt/default.nix new file mode 100644 index 0000000..243aa6b --- /dev/null +++ b/users/tdback/modules/neomutt/default.nix @@ -0,0 +1,69 @@ +{ pkgs, ... }: +{ + programs.neomutt = { + enable = true; + package = pkgs.neomutt; + + vimKeys = true; + sort = "reverse-date"; + + checkStatsInterval = 60; + + sidebar = { + enable = true; + shortPath = true; + width = 20; + }; + + binds = [ + { + map = [ "index" "pager" ]; + key = "\\Cp"; + action = "sidebar-prev"; + } + { + map = [ "index" "pager" ]; + key = "\\Cn"; + action = "sidebar-next"; + } + { + map = [ "index" "pager" ]; + key = "\\Cy"; + action = "sidebar-open"; + } + ]; + + macros = [ + { + map = [ "index" "pager" ]; + key = "gi"; + action = "=Inbox"; + } + { + map = [ "index" "pager" ]; + key = "gs"; + action = "=Sent"; + } + { + map = [ "index" "pager" ]; + key = "gd"; + action = "=Drafts"; + } + { + map = [ "index" "pager" ]; + key = "gt"; + action = "=Trash"; + } + { + map = [ "index" "pager" ]; + key = "ga"; + action = "=Archive"; + } + { + map = [ "index" ]; + key = "S"; + action = "${pkgs.isync}/bin/mbsync -a"; + } + ]; + }; +} -- cgit v1.2.3