mirror of
https://github.com/openclaw/nix-openclaw.git
synced 2026-07-25 05:35:30 -04:00
[Feature] Add NixOS module for running gateway as isolated system user #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jeanlucthumm on GitHub (Jan 26, 2026).
Summary
The current module only supports home-manager (user-level systemd service). This means the gateway runs with full access to the user's personal files, SSH keys, credentials, etc.
Upstream issue: https://github.com/clawdbot/clawdbot/issues/2341
Proposal
Add a NixOS module (
nixosModules.clawdbot) that:clawdbotsystem user with minimal privilegesDynamicUser=trueor dedicated userProtectHome=truePrivateTmp=trueNoNewPrivileges=trueProtectSystem=strictUse Case
Security-conscious users who want to run clawdbot on a server without exposing their personal files to the LLM.
Notes