mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 08:43:02 +00:00
lets tyr not dynamcic user
This commit is contained in:
1 parent
b784add166
commit
81c90545c6
1 file changed
+9
-1
@@ -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) (
|
||||
|
||||
Reference in new issue
Block a user