1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-04-07 17:45:06 +00:00

neomutt: remove per-account empty lines

This commit is contained in:
Matthieu C. 2025-03-24 01:30:36 +01:00
parent cb4ec90a4b
commit 0c118f8054

View file

@ -302,7 +302,8 @@ let
"set signature = ${
pkgs.writeText "signature.txt" account.signature.text
}";
in ''
in concatStringsSep "\n" ([
''
# Generated by Home Manager.${
optionalString cfg.unmailboxes ''
@ -325,11 +326,10 @@ let
# MTA section
${optionsStr (mtaSection account)}
${optionalString (cfg.checkStatsInterval != null) mailCheckSection}
${optionalString cfg.sidebar.enable sidebarSection}
'']
++ (lib.optional (cfg.checkStatsInterval != null) mailCheckSection)
++ (lib.optional cfg.sidebar.enable sidebarSection)
++ [ ''
# MRA section
${mraSection account}
@ -337,9 +337,9 @@ let
${account.neomutt.extraConfig}
${signature}
''
+ optionalString (account.notmuch.enable && account.notmuch.neomutt.enable)
(notmuchSection account);
'' ]
++ lib.optional (account.notmuch.enable && account.notmuch.neomutt.enable)
(notmuchSection account));
in {
options = {