nixos-config/config/programs/mail.nix

51 lines
1.2 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: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
}
{
key = "<Return>"; # what the fuck is this mapping
action = "display-message";
2022-01-19 15:53:04 +00:00
map = [ "index" ];
}
{
key = "\\CV";
action = "display-message"; # i give up
2022-01-19 15:53:04 +00:00
map = [ "index" ];
}
2022-01-19 15:03:11 +00:00
];
2022-03-03 19:24:20 +00:00
extraConfig = ''
virtual-mailboxes "To Do" "notmuch://?query=tag:todo"
virtual-mailboxes "To Read" "notmuch://?query=tag:toread"
virtual-mailboxes "Blocked" "notmuch://?query=tag:blocked"
virtual-mailboxes "Archive" "notmuch://?query=tag:archive"
macro index,pager A "<modify-labels>+archive -unread -inbox\\n"
bind index,pager y modify-labels
'';
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
}