Add restricted AI worker access with deployment capabilities #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "ai-worker-restricted-access"
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?
Summary
This PR adds restricted SSH access for the AI worker (hermes-agent) to run ollama benchmarks on the host via docker commands.
Security Model
The
ai-workeruser now has:Filesystem Access
/home/ai-worker(standard user home)/home/gortium/infraor other host filesSudo Access
nh,nixos-rebuild,nixpkgs-fmt, ornixDocker Access
dockergroup - can rundockeranddocker execcommandsdocker exec ollama ollama ...for benchmarkingdocker exec --privileged ollama rocm-smi ...for VRAM monitoringWorkflow: SSH + Docker Benchmarking
Changes
modules/nixos/security/ai-worker-restricted.nix- New module: creates ai-worker user with docker group, no sudomodules/nixos/security/README-ai-worker.md- Documentation for docker-only workflowusers/ai-worker.nix- User definition for ai-workerflake.nix- Imports the security moduleTesting
After merge, verify with:
Known Issues
secrets.nixto allow decryption from the container.Related
Hermes referenced this pull request2026-04-30 16:04:13 +00:00
Hermes referenced this pull request2026-04-30 16:09:42 +00:00
Hermes referenced this pull request2026-05-01 01:38:33 +00:00