From 8f860b688730f595915635795c0cd8edaefed309 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 18 May 2025 17:23:11 +0200 Subject: [PATCH] feat(email): force existence of .signature file --- users/phundrak/email.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/users/phundrak/email.nix b/users/phundrak/email.nix index bd3b6df..5823d5f 100644 --- a/users/phundrak/email.nix +++ b/users/phundrak/email.nix @@ -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 = { maildirBasePath = "Mail"; accounts."lucien@phundrak.com" = { @@ -12,12 +23,7 @@ ]; passwordCommand = "cat ${config.sops.secrets.emailPassword.path}"; signature = { - text = '' - Lucien “Phundrak” Cartier-Tilet - https://phundrak.com (Français) - https://phundrak.com/en (English) - Sent from GNU/Emacs - ''; + text = signature; showSignature = "append"; }; userName = "lucien@phundrak.com";