From 82a1954c26e2800f4dd94b605601e3fdd3968cfe Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 1 Jun 2023 20:58:46 -0400 Subject: [PATCH] fix: new aerc has different directory for filters --- modules/common/mail/aerc.nix | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/modules/common/mail/aerc.nix b/modules/common/mail/aerc.nix index 913cc21..1cd6c91 100644 --- a/modules/common/mail/aerc.nix +++ b/modules/common/mail/aerc.nix @@ -154,20 +154,16 @@ general.unsafe-accounts-conf = true; viewer = { pager = "${pkgs.less}/bin/less -R"; }; filters = { - "text/plain" = - "${pkgs.gawk}/bin/awk -f ${pkgs.aerc}/share/aerc/filters/colorize"; + "text/plain" = "${pkgs.aerc}/libexec/aerc/filters/colorize"; "text/calendar" = - "${pkgs.gawk}/bin/awk -f ${pkgs.aerc}/share/aerc/filters/calendar"; + "${pkgs.gawk}/bin/awk -f ${pkgs.aerc}/libexec/aerc/filters/calendar"; "text/html" = - "${pkgs.aerc}/share/aerc/filters/html"; # Requires w3m, dante - # "text/html" = - # "${pkgs.aerc}/share/aerc/filters/html | ${pkgs.aerc}/share/aerc/filters/colorize"; + "${pkgs.aerc}/libexec/aerc/filters/html | ${pkgs.aerc}/libexec/aerc/filters/colorize"; # Requires w3m, dante # "text/*" = # ''${pkgs.bat}/bin/bat -fP --file-name="$AERC_FILENAME "''; "message/delivery-status" = - "${pkgs.gawk}/bin/awk -f ${pkgs.aerc}/share/aerc/filters/colorize"; - "message/rfc822" = - "${pkgs.gawk}/bin/awk -f ${pkgs.aerc}/share/aerc/filters/colorize"; + "${pkgs.aerc}/libexec/aerc/filters/colorize"; + "message/rfc822" = "${pkgs.aerc}/libexec/aerc/filters/colorize"; "application/x-sh" = "${pkgs.bat}/bin/bat -fP -l sh"; "application/pdf" = "${pkgs.zathura}/bin/zathura -"; "audio/*" = "${pkgs.mpv}/bin/mpv -";