summaryrefslogtreecommitdiff
path: root/user-profiles/feeds
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-09-08 15:58:47 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-09-08 15:58:47 +0200
commitd3edd6aa41d7e86894781711dd420cc89e922407 (patch)
treefee7fcf3f0cb6b36711219ed0a13b2cdda4c79e0 /user-profiles/feeds
parente744dd74e8983a2e7443ff0098e75415d4111e47 (diff)
downloadnixos-d3edd6aa41d7e86894781711dd420cc89e922407.tar
nixos-d3edd6aa41d7e86894781711dd420cc89e922407.tar.gz
nixos-d3edd6aa41d7e86894781711dd420cc89e922407.tar.bz2
nixos-d3edd6aa41d7e86894781711dd420cc89e922407.tar.xz
nixos-d3edd6aa41d7e86894781711dd420cc89e922407.zip
feeds: mailcap
Diffstat (limited to 'user-profiles/feeds')
-rw-r--r--user-profiles/feeds/module.nix4
1 files changed, 4 insertions, 0 deletions
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
167 } '' 167 } ''
168 mkdir -p $out/bin 168 mkdir -p $out/bin
169 makeWrapper ${pkgs.alot}/bin/alot $out/bin/alot-feeds \ 169 makeWrapper ${pkgs.alot}/bin/alot $out/bin/alot-feeds \
170 --prefix MAILCAPS : ${alotMailcaps} \
170 --add-flags --config=${alotConfig} \ 171 --add-flags --config=${alotConfig} \
171 --add-flags --notmuch-config=${configPath} 172 --add-flags --notmuch-config=${configPath}
172 173
@@ -182,6 +183,9 @@ let
182 realname = notmuchIni.user.name; 183 realname = notmuchIni.user.name;
183 address = notmuchIni.user.primary_email; 184 address = notmuchIni.user.primary_email;
184 } "substituteAll ${./alot.config} $out"; 185 } "substituteAll ${./alot.config} $out";
186 alotMailcaps = pkgs.writeText "mailcaps" ''
187 text/html; ${pkgs.lynx}/bin/lynx -dump -dont_wrap_pre "%s"; nametemplate=%s.html; copiousoutput
188 '';
185in { 189in {
186 config = { 190 config = {
187 home.packages = [ immWrapped notmuchWrapped pkgs.notmuch.man alotWrapped ]; 191 home.packages = [ immWrapped notmuchWrapped pkgs.notmuch.man alotWrapped ];