From 8e527ad51f6a8c1427b7df080470e260b4a6590e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 30 Apr 2024 00:04:34 +0300 Subject: [PATCH] mailcap: hardcode elinks --- modules/profiles/desktop/default.nix | 7 ++++++- modules/profiles/desktop/mailcap | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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 &;