zaphyra's git: nixfiles

zaphyra's nixfiles

commit 1f74975ecd90a9478d81a76019a3c442765003ed
parent 7838093b6c8ed968cc2b9df66293286beea84535
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Sat, 28 Jun 2025 11:34:23 +0200

config/nixos/modules/services/knot: add fixed uid/gid
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/config/nixos/modules/services/knot.nix b/config/nixos/modules/services/knot.nix
@@ -96,10 +96,15 @@ in
     networking.firewall.allowedTCPPorts = [ 53 ];
     networking.firewall.allowedUDPPorts = [ 53 ];
 
+    users = {
+      users.knot.uid = 553;
+      groups.knot.gid = 553;
+    };
+
     modules.filesystem.impermanence.system.dirs = [
       {
         directory = cfg.dataDir;
-        mode = "0770";
+        mode = "770";
         user = "knot";
         group = "knot";
       }