about summary refs log tree commit diff stats
path: root/modules/by-name
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-12 16:10:17 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-12 16:10:17 +0200
commit7434cb7a65a9b1568416cbd26e9b463d894cb14d (patch)
tree74e064b0f246d003e53332e72088f7763e850026 /modules/by-name
parentmodules/stalwart-mail: Allow both nginx and stalwart-mail access to the cert (diff)
downloadnixos-server-7434cb7a65a9b1568416cbd26e9b463d894cb14d.zip
modules/nginx: Set the "acme" group as group of the "acme" user
For some reason, this is not done already. Setting this prevents an
assertion being thrown, that the "acme" user does not have a group.
Diffstat (limited to 'modules/by-name')
-rw-r--r--modules/by-name/ng/nginx/module.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/by-name/ng/nginx/module.nix b/modules/by-name/ng/nginx/module.nix
index 1cb4e46..fa3337d 100644
--- a/modules/by-name/ng/nginx/module.nix
+++ b/modules/by-name/ng/nginx/module.nix
@@ -44,7 +44,10 @@ in {
     ];
 
     users = {
-      users.acme.uid = config.vhack.constants.ids.uids.acme;
+      users.acme = {
+        uid = config.vhack.constants.ids.uids.acme;
+        group = "acme";
+      };
       groups.acme.gid = config.vhack.constants.ids.gids.acme;
     };