feat(email): force existence of .signature file

This commit is contained in:
Lucien Cartier-Tilet 2025-05-18 17:23:11 +02:00
parent 46e9f8c007
commit 8f860b6887
Signed by: phundrak
SSH Key Fingerprint: SHA256:CE0HPsbW3L2YiJETx1zYZ2muMptaAqTN2g3498KrMkc

View File

@ -1,4 +1,15 @@
{config, ...}: { {config, ...}: let
signature = ''
Lucien Phundrak Cartier-Tilet
https://phundrak.com (Français)
https://phundrak.com/en (English)
Sent from GNU/Emacs
'';
in {
home.file.".signature" = {
target = ".signature";
text = signature;
};
accounts.email = { accounts.email = {
maildirBasePath = "Mail"; maildirBasePath = "Mail";
accounts."lucien@phundrak.com" = { accounts."lucien@phundrak.com" = {
@ -12,12 +23,7 @@
]; ];
passwordCommand = "cat ${config.sops.secrets.emailPassword.path}"; passwordCommand = "cat ${config.sops.secrets.emailPassword.path}";
signature = { signature = {
text = '' text = signature;
Lucien Phundrak Cartier-Tilet
https://phundrak.com (Français)
https://phundrak.com/en (English)
Sent from GNU/Emacs
'';
showSignature = "append"; showSignature = "append";
}; };
userName = "lucien@phundrak.com"; userName = "lucien@phundrak.com";