nixos-config/config/programs/mail.nix

26 lines
745 B
Nix
Raw Normal View History

2022-06-12 15:39:15 +00:00
{pkgs, ...}: let
in {
2022-01-19 13:56:46 +00:00
services.imapnotify.enable = true;
programs.mbsync.enable = true;
2022-06-28 19:51:05 +00:00
programs.notmuch.enable = true;
2022-06-28 18:40:04 +00:00
programs.alot = {
2022-01-19 13:56:46 +00:00
enable = true;
2022-06-28 20:11:55 +00:00
hooks = builtins.readFile ./hooks.py
bindings = {
envelope = {
k = "call hooks.attach_my_key(ui)";
K = "call hooks.attach_keys(ui)";
"control k" = "call hooks.attach_recipient_keys(ui)";
};
thread = {
k = "call hooks.import_keys(ui)"
};
};
settings = {
envelope_txt2html = "${pkgs.pandoc}/bin/pandoc -f markdown -t html -s --self-contained --template=${../../extras/GitHub.html5}";
envelope_html2txt = "${pkgs.pandoc}/bin/pandoc -t markdown -f html"
};
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
}