diff options
| author | Henry J. Webster <hwebs@hwebs.info> | 2026-08-03 19:44:07 -0500 |
|---|---|---|
| committer | Henry J. Webster <hwebs@hwebs.info> | 2026-08-03 19:44:07 -0500 |
| commit | e9b9671d238bb3de779c0dbf4a518b41280be778 (patch) | |
| tree | a67d4baccab02bdfd4dfd1c7bb4e73d0521fbaaa /flake.nix | |
| parent | 66be8debbf34b82a735b17c09ff400d30d8a48f1 (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 'flake.nix')
0 files changed, 0 insertions, 0 deletions
