From c7568a788f1b9cbb85db27c3be225388a8db14a4 Mon Sep 17 00:00:00 2001 From: joy Date: Mon, 2 Dec 2024 17:06:39 +0100 Subject: [PATCH] mailcap --- modules/programs/mail/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/programs/mail/default.nix b/modules/programs/mail/default.nix index c0aa377..a60c665 100644 --- a/modules/programs/mail/default.nix +++ b/modules/programs/mail/default.nix @@ -2,6 +2,7 @@ username, mail, domain, + pkgs, ... }: { programs.mbsync = { @@ -204,4 +205,7 @@ macro index,pager Ma ";=Archive" "move mail to archive" macro index,pager Ca ";=Archive" "copy mail to archive"''; }; + home.file.".mailcap".text = '' + text/html; ${pkgs.lynx}/bin/lynx -dump %s; copiousoutput; nametemplate=%s.html + ''; }