config

NixOS config
Log | Files | Refs | README | LICENSE

commit e13bb2cdef401ef8c40906d4489784d295ec8081 (tree)
parent 49fe0046c140f3535cd802d06774464dd24570a2
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Tue, 30 Apr 2024 08:04:13 +0300

neomutt: fix mailcaprc

Diffstat:
Mmodules/profiles/desktop/default.nix | 9+++++----
Dmodules/profiles/desktop/mailcap | 3---
2 files changed, 5 insertions(+), 7 deletions(-)

diff --git 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 @@ -1,3 +0,0 @@ -text/html; @elinks@/bin/elinks -dump ; copiousoutput; -application/*; xdg-open %s &> /dev/null &; -image/*; xdg-open %s &> /dev/null &;