feat: add openclaw sandboxed user, sudo policy, fs restrictions, docker proxy, watchdog
This commit is contained in:
15
modules/openclaw-user.nix
Normal file
15
modules/openclaw-user.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
users.users.openclaw = {
|
||||
isSystemUser = false;
|
||||
isNormalUser = true;
|
||||
home = "/home/openclaw";
|
||||
createHome = true;
|
||||
group = "openclaw";
|
||||
extraGroups = [ "docker" ];
|
||||
shell = pkgs.bash;
|
||||
description = "OpenClaw agent sandboxed user";
|
||||
};
|
||||
|
||||
users.groups.openclaw = { };
|
||||
}
|
||||
Reference in New Issue
Block a user