diff options
author | sefidel <contact@sefidel.net> | 2023-08-01 21:24:37 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-08-01 21:27:34 +0900 |
commit | 16b152717dc463b3973c7692f387f439aacba2dc (patch) | |
tree | a9ab2b80c338c5a99e2d8f6bc4b748a0ea4e25f1 /modules | |
parent | 58a9d391431de5fc96d8c989bc1e99e98d7c93b4 (diff) | |
download | infra-16b152717dc463b3973c7692f387f439aacba2dc.tar.gz infra-16b152717dc463b3973c7692f387f439aacba2dc.zip |
feat(services/nixos-mailserver): split internal and system mailer
Diffstat (limited to 'modules')
-rw-r--r-- | modules/services/nixos-mailserver.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/services/nixos-mailserver.nix b/modules/services/nixos-mailserver.nix index 7a8c5a5..59571bc 100644 --- a/modules/services/nixos-mailserver.nix +++ b/modules/services/nixos-mailserver.nix @@ -17,6 +17,11 @@ in owner = "dovecot2"; group = "dovecot2"; }; + sops.secrets.system-imap-pass = { + mode = "0440"; + owner = "dovecot2"; + group = "dovecot2"; + }; sops.secrets.internal-imap-pass = { mode = "0440"; owner = "dovecot2"; @@ -84,7 +89,11 @@ in hashedPasswordFile = config.sops.secrets.sefidel-imap-pass.path; }; "system@exotic.sh" = { - aliases = [ "system@nand.moe" ]; + aliases = [ "system" "system@nand.moe" ]; + hashedPasswordFile = config.sops.secrets.system-imap-pass.path; + }; + "internal@exotic.sh" = { + aliases = [ "internal" ]; hashedPasswordFile = config.sops.secrets.internal-imap-pass.path; }; }; |