modules/aerc: add support of gpg files
This commit is contained in:
parent
d9b8af2e10
commit
40d9b123a0
1 changed files with 18 additions and 1 deletions
|
@ -26,11 +26,24 @@ in
|
||||||
# See: https://git.sbruder.de/simon/nixos-config/src/branch/master/users/simon/modules/mail/aerc/default.nix
|
# See: https://git.sbruder.de/simon/nixos-config/src/branch/master/users/simon/modules/mail/aerc/default.nix
|
||||||
programs.aerc = {
|
programs.aerc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.aerc;
|
package = pkgs.unstable.aerc.override {
|
||||||
|
# support .filename filter
|
||||||
|
buildGoModule = args: pkgs.unstable.buildGoModule (args // rec {
|
||||||
|
version = "6ffc0ed5991bef69a50cbc22647af0a6a0e0a895";
|
||||||
|
src = pkgs.fetchFromSourcehut {
|
||||||
|
owner = "~rjarry";
|
||||||
|
repo = "aerc";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-IyAcTCDSjOmZ6KPr9nYKdxWA0qryeU4jTwxRWzt2NOY=";
|
||||||
|
};
|
||||||
|
vendorHash = "sha256-pir78zXidz7N9Z6uw9YqkkjVRUho0PuKgDTQFli/4fs=";
|
||||||
|
});
|
||||||
|
};
|
||||||
# https://git.sr.ht/~rjarry/aerc/tree/master/item/doc/aerc-config.5.scd
|
# https://git.sr.ht/~rjarry/aerc/tree/master/item/doc/aerc-config.5.scd
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
general = {
|
general = {
|
||||||
unsafe-accounts-conf = true;
|
unsafe-accounts-conf = true;
|
||||||
|
pgp-provider = "gpg";
|
||||||
};
|
};
|
||||||
|
|
||||||
ui = {
|
ui = {
|
||||||
|
@ -59,8 +72,12 @@ in
|
||||||
"text/rfc822-headers" = "colorize";
|
"text/rfc822-headers" = "colorize";
|
||||||
# "text/*" = "${pkgs.bat}/bin/bat -fpp --file-name='$AERC_FILENAME'";
|
# "text/*" = "${pkgs.bat}/bin/bat -fpp --file-name='$AERC_FILENAME'";
|
||||||
"message/delivery-status" = "cat | colorize";
|
"message/delivery-status" = "cat | colorize";
|
||||||
|
"application/pgp-keys" = "gpg";
|
||||||
|
".filename,~\\.gpg" = "gpg --decrypt";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
openers = { };
|
||||||
|
|
||||||
hooks = {
|
hooks = {
|
||||||
mail-received = "notify-send \"New mail from $AERC_FROM_NAME\" \"$AERC_SUBJECT\"";
|
mail-received = "notify-send \"New mail from $AERC_FROM_NAME\" \"$AERC_SUBJECT\"";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue