diff --git a/modules/programs/neomutt.nix b/modules/programs/neomutt.nix index f2a6bbff..d990f02e 100644 --- a/modules/programs/neomutt.nix +++ b/modules/programs/neomutt.nix @@ -124,7 +124,7 @@ let let folderHook = mapAttrsToList setOption (genCommonFolderHooks account // { folder = "'${account.maildir.absPath}'"; - }) ++ optional (neomutt.extraConfig != "") neomutt.extraConfig; + }); in '' ${concatStringsSep "\n" folderHook} ''; diff --git a/tests/modules/programs/neomutt/hm-example.com-expected b/tests/modules/programs/neomutt/hm-example.com-expected index 430509c3..fceae5dc 100644 --- a/tests/modules/programs/neomutt/hm-example.com-expected +++ b/tests/modules/programs/neomutt/hm-example.com-expected @@ -25,8 +25,6 @@ set realname='H. M. Test' set record='+Sent' set spoolfile='+Inbox' set trash='+Trash' -color status cyan default - # Extra configuration diff --git a/tests/modules/programs/neomutt/hm-example.com-msmtp-expected.conf b/tests/modules/programs/neomutt/hm-example.com-msmtp-expected.conf index 1850620f..925c7063 100644 --- a/tests/modules/programs/neomutt/hm-example.com-msmtp-expected.conf +++ b/tests/modules/programs/neomutt/hm-example.com-msmtp-expected.conf @@ -24,8 +24,6 @@ set realname='H. M. Test' set record='+Sent' set spoolfile='+Inbox' set trash='+Trash' -color status cyan default - # Extra configuration