smallest change
This commit is contained in:
parent
4cca1dc327
commit
9c83ba6849
77 changed files with 36828 additions and 1516 deletions
37
modules/home/apps/mail/aerc/default.nix
Normal file
37
modules/home/apps/mail/aerc/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.custom; let
|
||||
cfg = config.apps.mail.aerc;
|
||||
in {
|
||||
options.apps.mail.aerc = with types; {
|
||||
enable = mkBoolOpt false "Enable Aerc Mail Client";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.aerc = {
|
||||
enable = false;
|
||||
package = nixos-stable.aerc;
|
||||
extraConfig = {
|
||||
general = {
|
||||
pgp-provider = "gpg";
|
||||
};
|
||||
filters = {
|
||||
"text/plain" = "colorize";
|
||||
"text/calendar" = "calendar";
|
||||
|
||||
"message/delivery-status" = "colorize";
|
||||
"message/rfc822" = " colorize";
|
||||
"text/html" = "pandoc -f html -t plain | colorize";
|
||||
};
|
||||
hooks = {
|
||||
"mail-received" = "notify-send \"[$AERC_ACCOUNT/$AERC_FOLDER] New mail from $AERC_FROM_NAME\" \"$AERC_SUBJECT\"";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue