summaryrefslogtreecommitdiff
path: root/programs.nix
diff options
context:
space:
mode:
authorHenry J. Webster <hwebs@hwebs.info>2026-08-03 19:44:07 -0500
committerHenry J. Webster <hwebs@hwebs.info>2026-08-03 19:44:07 -0500
commite9b9671d238bb3de779c0dbf4a518b41280be778 (patch)
treea67d4baccab02bdfd4dfd1c7bb4e73d0521fbaaa /programs.nix
parent66be8debbf34b82a735b17c09ff400d30d8a48f1 (diff)
enzo: add yokai sandbox user for coding agents
Add a bare `yokai` user (primary group `ikai`) for running coding agents under a separate UID, isolated from hwebs's files and secrets. yokai has no privileged group memberships and its own $HOME. - systemd.tmpfiles creates /srv/git (2770 root:ikai) as a drop dir for the agent's local clones, outside ~ so /home/hwebs stays a sealed 700. - security.sudo lets hwebs drop to yokai without a password (de-escalation only, scoped to runAs=yokai; root stays gated). - hwebs joins the ikai group. Extensive comments document the local-clones model: yokai owns its clone, hwebs never runs git inside it, and commits are exchanged by fetching (or via bundles) and landed on main with squash/rebase/interactive + signing. Assisted-by: claude-code:claude-opus-4-8
Diffstat (limited to 'programs.nix')
0 files changed, 0 insertions, 0 deletions