From e13bb2cdef401ef8c40906d4489784d295ec8081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 30 Apr 2024 08:04:13 +0300 Subject: [PATCH] neomutt: fix mailcaprc --- modules/profiles/desktop/default.nix | 9 +++++---- modules/profiles/desktop/mailcap | 3 --- 2 files changed, 5 insertions(+), 7 deletions(-) delete mode 100644 modules/profiles/desktop/mailcap diff --git a/modules/profiles/desktop/default.nix b/modules/profiles/desktop/default.nix index 3ab4b42..2f9059b 100644 --- a/modules/profiles/desktop/default.nix +++ b/modules/profiles/desktop/default.nix @@ -307,10 +307,11 @@ in { set index_format="%4C %Z %{%F %H:%M} %-15.15L (%?l?%4l&%4c?) %s" set mailcap_path = ${ - pkgs.substituteAll { - src = ./mailcap; - inherit (pkgs) elinks; - } + pkgs.writeText "mailcaprc" '' + text/html; ${pkgs.elinks}/bin/elinks -dump ; copiousoutput; + application/*; ${pkgs.xdg-utils}/bin/xdg-open %s &> /dev/null &; + image/*; ${pkgs.xdg-utils}/bin/xdg-open %s &> /dev/null &; + '' } auto_view text/html unset record diff --git a/modules/profiles/desktop/mailcap b/modules/profiles/desktop/mailcap deleted file mode 100644 index a742c8a..0000000 --- a/modules/profiles/desktop/mailcap +++ /dev/null @@ -1,3 +0,0 @@ -text/html; @elinks@/bin/elinks -dump ; copiousoutput; -application/*; xdg-open %s &> /dev/null &; -image/*; xdg-open %s &> /dev/null &;