From d3edd6aa41d7e86894781711dd420cc89e922407 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 8 Sep 2021 15:58:47 +0200 Subject: feeds: mailcap --- user-profiles/feeds/module.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'user-profiles/feeds/module.nix') diff --git a/user-profiles/feeds/module.nix b/user-profiles/feeds/module.nix index de1a65c6..adfc52a2 100644 --- a/user-profiles/feeds/module.nix +++ b/user-profiles/feeds/module.nix @@ -167,6 +167,7 @@ let } '' mkdir -p $out/bin makeWrapper ${pkgs.alot}/bin/alot $out/bin/alot-feeds \ + --prefix MAILCAPS : ${alotMailcaps} \ --add-flags --config=${alotConfig} \ --add-flags --notmuch-config=${configPath} @@ -182,6 +183,9 @@ let realname = notmuchIni.user.name; address = notmuchIni.user.primary_email; } "substituteAll ${./alot.config} $out"; + alotMailcaps = pkgs.writeText "mailcaps" '' + text/html; ${pkgs.lynx}/bin/lynx -dump -dont_wrap_pre "%s"; nametemplate=%s.html; copiousoutput + ''; in { config = { home.packages = [ immWrapped notmuchWrapped pkgs.notmuch.man alotWrapped ]; -- cgit v1.2.3