nixos-config/config/programs/mail.nix

148 lines
3 KiB
Nix
Raw Normal View History

2022-01-19 13:56:46 +00:00
{ ... }: {
services.imapnotify.enable = true;
programs.mbsync.enable = true;
programs.notmuch = {
enable = true;
};
programs.neomutt = {
enable = true;
vimKeys = true;
sidebar = {
enable = true;
};
2022-01-19 15:03:11 +00:00
binds = [
2022-01-19 15:23:10 +00:00
{
key = "g";
action = "noop";
map = [ "attach" "browser" "index" "pager" ];
}
{
key = "gg";
action = "first-entry";
map = [ "attach" "browser" "index" ];
}
{
key = "G";
action = "last-entry";
map = [ "attach" "browser" "index" ];
}
{
key = "gg";
action = "top";
map = [ "pager" ];
}
{
key = "G";
action = "bottom";
map = [ "pager" ];
}
{
key = "k";
action = "previous-line";
map = [ "pager" ];
}
{
key = "j";
action = "next-line";
map = [ "pager" ];
}
{
key = "\\CF";
action = "next-page";
map = [ "attach" "browser" "pager" "index" ];
}
{
key = "\\CB";
action = "previous-page";
map = [ "attach" "browser" "pager" "index" ];
}
{
key = "\\Cu";
action = "half-up";
map = [ "attach" "browser" "pager" "index" ];
}
{
key = "\\Cd";
action = "half-down";
map = [ "attach" "browser" "pager" "index" ];
}
{
key = "\\Ce";
action = "next-line";
map = [ "browser" "pager" "index" ];
}
{
key = "\\Cy";
action = "previous-line";
map = [ "browser" "pager" "index" ];
}
{
key = "d";
action = "noop";
map = [ "pager" "index" ];
}
{
key = "dd";
action = "delete-message";
map = [ "pager" "index" ];
}
{
key = "\\Cm";
action = "list-reply";
map = [ "index" ];
}
{
key = "N";
action = "search-opposite";
map = [ "browser" "pager" "index" ];
}
{
key = "dT";
action = "delete-thread";
map = [ "pager" "index" ];
}
{
key = "dt";
action = "delete-subthread";
map = [ "pager" "index" ];
}
{
key = "gt";
action = "next-thread";
map = [ "pager" "index" ];
}
{
key = "gT";
action = "previous-thread";
map = [ "pager" "index" ];
}
{
key = "za";
action = "collapse-thread";
map = [ "index" ];
}
{
key = "zA";
action = "collapse-all";
map = [ "index" ];
}
2022-01-19 15:03:11 +00:00
{
2022-01-19 15:09:20 +00:00
key = "\\CA";
2022-01-19 15:03:11 +00:00
action = "sidebar-next";
2022-01-19 15:10:09 +00:00
map = [ "index" "pager" ];
2022-01-19 15:03:11 +00:00
}
{
2022-01-19 15:09:20 +00:00
key = "\\CL";
2022-01-19 15:03:11 +00:00
action = "sidebar-prev";
2022-01-19 15:10:09 +00:00
map = [ "index" "pager" ];
2022-01-19 15:03:11 +00:00
}
{
2022-01-19 15:09:20 +00:00
key = "\\CP";
2022-01-19 15:03:11 +00:00
action = "sidebar-open";
2022-01-19 15:10:09 +00:00
map = [ "index" "pager" ];
2022-01-19 15:03:11 +00:00
}
];
2022-01-19 13:56:46 +00:00
};
2022-01-19 14:48:24 +00:00
programs.msmtp.enable = true;
2022-01-19 13:56:46 +00:00
}