From 7a08fbbd4188a2ed8529fbfe9db69867d970ff97 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 23 Sep 2023 16:17:35 -0700 Subject: [PATCH] Define groups for mailserver users --- mail-server.nix | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/mail-server.nix b/mail-server.nix index 10b88b7..05abd36 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -136,19 +136,28 @@ in { }; }; - users.users = { - mailserver-dovecot = { - uid = 4455; - isSystemUser = true; + users = { + users = { + mailserver-dovecot = { + uid = 4455; + isSystemUser = true; + group = "mailserver-dovecot"; + }; + mailserver-antivirus = { + uid = 4456; + isSystemUser = true; + group = "mailserver-antivirus"; + }; + mailserver-dkim = { + uid = 4457; + isSystemUser = true; + group = "mailserver-dkim"; + }; }; - mailserver-antivirus = { - uid = 4456; - isSystemUser = true; - - }; - mailserver-dkim = { - uid = 4457; - isSystemUser = true; + groups = { + mailserver-dovecot = { }; + mailserver-antivirus = { }; + mailserver-dkim = { }; }; };