neomutt/signature: unset if disabled

Closes #2876
This commit is contained in:
Sumner Evans 2022-04-08 09:20:04 -06:00
parent f911ebbec9
commit d5fb54420e
No known key found for this signature in database
GPG key ID: 8904527AB50022FD
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 = {

View file

@ -31,6 +31,7 @@ set trash='+Trash'
# Extra configuration
color status cyan default
unset signature
# notmuch section
set nm_default_uri = "notmuch:///home/hm-user/Mail"
virtual-mailboxes "My INBOX" "notmuch://?query=tag:inbox"

View file

@ -30,3 +30,4 @@ set trash='+Trash'
# Extra configuration
unset signature

View file

@ -30,3 +30,4 @@ set trash='+Trash'
# Extra configuration
color status cyan default
unset signature

View file

@ -28,3 +28,4 @@ set trash='+Trash'
# Extra configuration
unset signature