From 2ce1d06baf33806ab9d32ceb38ac0534fe8f3dec Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Mon, 2 Jun 2025 22:16:55 +0200 Subject: [PATCH] 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 --- nixos/modules/services/networking/kresd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/kresd.nix b/nixos/modules/services/networking/kresd.nix index c93b591701a7..c203aea84df3 100644 --- a/nixos/modules/services/networking/kresd.nix +++ b/nixos/modules/services/networking/kresd.nix @@ -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