mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-14 03:10:19 +01:00
thinkpad-nixos: Mutualize work mail address
This commit is contained in:
parent
34c7742bca
commit
b2a95d6ce7
1 changed files with 6 additions and 4 deletions
|
|
@ -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 <quentin.boyer@***REMOVED***>";
|
||||
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***"'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue