nixos/sfh: Add slop-cannon container for agents

A container on `sfh` for coding agents driven remotely through Paseo,
using our relay on `middleman`. Agents run as the unprivileged
`slop-cannon` user; Claude managed settings disable bypass mode and
deny raw deploy and `ssh-machine` access.

Move the Claude Code and Codex configuration out of `gui` into a
shared `my.agents` home-manager module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 00:39:48 +00:00
co-authored by Claude Opus 5.5
parent 5af71ea231
commit a62b8351fa
17 changed files with 599 additions and 116 deletions
@@ -168,6 +168,10 @@ in
MACVLAN = mkForce "ctrs-hi:host0 ctrs-core:lan-core";
};
};
# nspawn's default `/tmp` is 10% of RAM; agents need more scratch space
slop-cannon = {
filesConfig.TemporaryFileSystem = [ "/tmp:mode=1777,size=32G" ];
};
};
systemd.services = {
@@ -175,6 +179,11 @@ in
"char-ttyUSB rw"
"char-video4linux rw"
];
# Coding agents; keep the other containers responsive
"systemd-nspawn@slop-cannon".serviceConfig = {
CPUWeight = 20;
MemoryMax = "64G";
};
};
my = {
@@ -198,6 +207,7 @@ in
let
instances = {
unifi = {};
slop-cannon = {};
hass = {
bindMounts = {
"/mnt/frigate" = {