From ddb5f85e2a518eda1645819646f59125bb33c336 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 29 Mar 2025 15:25:51 +0100 Subject: modules/stalwart-mail: Assign uids and gids to the stalwart users --- modules/by-name/st/stalwart-mail/module.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'modules/by-name/st/stalwart-mail/module.nix') diff --git a/modules/by-name/st/stalwart-mail/module.nix b/modules/by-name/st/stalwart-mail/module.nix index 6905005..1ad76c7 100644 --- a/modules/by-name/st/stalwart-mail/module.nix +++ b/modules/by-name/st/stalwart-mail/module.nix @@ -249,10 +249,20 @@ in { # service is restarted on a potentially large number of files. # That would cause unnecessary and unwanted delays. users = { - groups.stalwart-mail = {}; + groups.stalwart-mail = { + gid = config.vhack.constants.ids.gids.stalwart-mail; + }; users.stalwart-mail = { isSystemUser = true; group = "stalwart-mail"; + uid = config.vhack.constants.ids.uids.stalwart-mail; + }; + groups.redis-stalwart-mail = { + gid = config.vhack.constants.ids.gids.redis-stalwart-mail; + }; + users.redis-stalwart-mail = { + group = "redis-stalwart-mail"; + uid = config.vhack.constants.ids.uids.redis-stalwart-mail; }; }; -- cgit 1.4.1