diff --git a/modules/profiles/desktop/default.nix b/modules/profiles/desktop/default.nix index 0fdf9ab..3ab4b42 100644 --- a/modules/profiles/desktop/default.nix +++ b/modules/profiles/desktop/default.nix @@ -306,7 +306,12 @@ in { extraConfig = '' set index_format="%4C %Z %{%F %H:%M} %-15.15L (%?l?%4l&%4c?) %s" - set mailcap_path = ${./mailcap} + set mailcap_path = ${ + pkgs.substituteAll { + src = ./mailcap; + inherit (pkgs) elinks; + } + } auto_view text/html unset record set send_charset="utf-8" diff --git a/modules/profiles/desktop/mailcap b/modules/profiles/desktop/mailcap index bc3410b..a742c8a 100644 --- a/modules/profiles/desktop/mailcap +++ b/modules/profiles/desktop/mailcap @@ -1,3 +1,3 @@ -text/html; elinks -dump ; copiousoutput; +text/html; @elinks@/bin/elinks -dump ; copiousoutput; application/*; xdg-open %s &> /dev/null &; image/*; xdg-open %s &> /dev/null &;