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 = {

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