nixos/kresd: don't explicitly set group id

null is the default, but setting it explicitly rather than relying on
the default results in collisions if users want to set their own gid.
Requiring mkForce here shouldn't be necessary when the module doesn't
specifically rely on the auto-allocation behaviour.

Change-Id: Ia541ac4e9c4d85b240386049b9947c607674a2f5
This commit is contained in:
Linus Heckemann 2025-06-02 22:16:55 +02:00
parent 2631b0b7ab
commit 2ce1d06baf

View File

@ -144,7 +144,7 @@ in
group = "knot-resolver";
description = "Knot-resolver daemon user";
};
users.groups.knot-resolver.gid = null;
users.groups.knot-resolver = { };
systemd.packages = [ cfg.package ]; # the units are patched inside the package a bit