From b2a95d6ce748780d4235e024eeb404898db6cd0e Mon Sep 17 00:00:00 2001 From: traxys Date: Sat, 3 Jun 2023 18:31:15 +0200 Subject: [PATCH] thinkpad-nixos: Mutualize work mail address --- hostconfig/thinkpad-nixos/hm.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hostconfig/thinkpad-nixos/hm.nix b/hostconfig/thinkpad-nixos/hm.nix index 452c808..75d015c 100644 --- a/hostconfig/thinkpad-nixos/hm.nix +++ b/hostconfig/thinkpad-nixos/hm.nix @@ -2,7 +2,9 @@ pkgs, config, ... -}: { +}: let + workAddr = "quentin.boyer@***REMOVED***"; +in { home.packages = with pkgs; [ bear clang-analyzer @@ -73,7 +75,7 @@ check-mail-cmd check-mail-timeout ; - from = "Quentin Boyer "; + from = "Quentin Boyer <${workAddr}>"; outgoing = "msmtpq --read-envelope-from --read-recipients"; default = "_unread"; postpone = "Drafts"; @@ -256,7 +258,7 @@ accounts.email = { accounts.work = rec { - address = "quentin.boyer@***REMOVED***"; + address = workAddr; imap = { host = "localhost"; port = 1143; @@ -327,7 +329,7 @@ #!/usr/bin/env sh # shellcheck disable=SC2029 - ssh nwadmin "/usr/sbin/sendmail -r quentin.boyer@***REMOVED*** $*" + ssh nwadmin "/usr/sbin/sendmail -r ${workAddr} $*" exit $? ''; in ''git send-email --sendmail-cmd="${nwadminSendmail}" --to="dl-bxi-sw-ll-patches@***REMOVED***"'';