nixos-config/config/programs/mail.nix

42 lines
862 B
Nix

{ ... }: {
services.imapnotify.enable = true;
programs.mbsync.enable = true;
programs.notmuch = {
enable = true;
};
programs.neomutt = {
enable = true;
vimKeys = true;
sidebar = {
enable = true;
};
binds = [
{
key = "\\CA";
action = "sidebar-next";
map = [ "index" "pager" ];
}
{
key = "\\CL";
action = "sidebar-prev";
map = [ "index" "pager" ];
}
{
key = "\\CP";
action = "sidebar-open";
map = [ "index" "pager" ];
}
{
key = "<Return>"; # what the fuck is this mapping
action = "display-message";
map = [ "index" ];
}
{
key = "\\CV";
action = "display-message"; # i give up
map = [ "index" ];
}
];
};
programs.msmtp.enable = true;
}