lets tyr not dynamcic user

This commit is contained in:
Rory& committed 2025-12-27 06:00:53 +01:00
1 parent b784add166
commit 81c90545c6
1 file changed
+9 -1
+9 -1
View File
@@ -130,7 +130,7 @@ in
serviceConfig = {
User = "spacebarchat";
Group = "spacebarchat";
DynamicUser = true;
DynamicUser = false;
LockPersonality = true;
ProtectClock = true;
ProtectControlGroups = true;
@@ -180,6 +180,14 @@ in
# systemd.tmpfiles.rules = [ "d /run/spacebarchat 0750 spacebar spacebar" ];
users.users.spacebarchat = {
isSystemUser = true;
description = "Spacebar service user";
home = "/var/lib/spacebarchat-server";
createHome = true;
shell = pkgs.lib.mkShellOf pkgs.bash;
};
systemd.services.spacebar-api = makeServerTsService {
description = "Spacebar Server - API";
environment = builtins.mapAttrs (_: val: builtins.toString val) (