neomutt/signature: unset if disabled (#2877)

Closes #2876
This commit is contained in:
Sumner Evans 2022-04-16 16:36:31 -06:00 committed by GitHub
parent 0586d2d42a
commit 2e473a7b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 2 deletions

View file

@ -223,9 +223,11 @@ let
# Extra configuration
${account.neomutt.extraConfig}
'' + optionalString (account.signature.showSignature != "none") ''
'' + (if (account.signature.showSignature == "none") then ''
unset signature
'' else ''
set signature = ${pkgs.writeText "signature.txt" account.signature.text}
'' + optionalString account.notmuch.enable (notmuchSection account);
'') + optionalString account.notmuch.enable (notmuchSection account);
in {
options = {