Files
nixfiles/docs/sites/colony/shill
jackos1998andClaude Opus 5.5 2519c3c86c nixos/palace: Run slop-broker for agents
`slop-cannon`'s agents reach the broker on `palace` through a vsock
device, under an `agent` policy: box queries run without asking,
`slop ssh` asks (offering 5 min and 1 h leases), and so do deploys.
The deploy key moves to `palace` as an age secret for the broker, so
the VM never holds it, and `AGENTS.md` points agents there at `slop`.

`palace` runs the builder itself, as `slop-broker-build`, reached over
SSH like a separate box and fetching `dev/nixfiles` with a read-only
deploy key, so `slop-cannon` shrinks to 24 GiB. `slop build` pushes
into Harmonia's store on `object` with a key of the broker's own,
which can only speak the store protocol and add GC roots there.
Agents' use of the builder asks, unless the commit is already on
`master`. Builds run agent-written Nix, so they only reach the
Internet, like `lan-untrusted`, and `nix-daemon` is limited so they
can't starve the VMs.

The approvals web app listens on `palace` for `middleman` only, the
one client the firewall lets in, which publishes it at
`approve.slop.nul.ie`. Approvers sign in with Pocket ID, and deploys
to the routers need a fresh passkey.

The broker's SSH targets are the deploy-rs nodes on `master`, which
the builder reads there, so agents can't add or redirect one.

With the broker gating what needs credentials, `slop-cannon`'s agents
are permissive by default: Claude bypasses permission prompts and
Codex runs without approvals or its sandbox, with matching Paseo
profiles. The deny rules for raw `deploy` and `ssh-machine` stay as
steers towards `slop`; the ones for `.keys/` go, since the VM's
checkout only has the committed public keys there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:45:27 +00:00
..

shill

The colony NixOS container host — most colony applications run as systemd-nspawn containers on this VM.

Role

Container hosting

my.containers.instances runs the colony containers on the ctrs bridge. Each is a full NixOS system rendered through my.asContainer and deployed as a profile on shill; containers are not standalone deploy targets. The shared container module supplies the nspawn units, /persist and store binds.

Shared storage

LVM-backed host volumes are bind-mounted into the consumers: /mnt/media is read-only in middleman and read-write in jackflix; /mnt/minio and /mnt/nix-cache are read-write in object.

Routing

shill routes between vms and ctrs, advertises estuary as DNS on ctrs, and routes Tailscale through waffletail and the qclk prefix through qclk. It applies the shared firewallForwards DNAT for estuary's public IP; a connection-mark-based SNAT rule keeps replies symmetric.

Host tuning

The box has a larger conntrack table and ephemeral-port range for high connection counts. Netdata listens on port 19999.

Network assignments

See the consolidated network assignments table (this box: shill).

Containers

Defined under shill/containers/ and wired up in shill's my.containers.instances. The generated network assignments table is the source of truth for their current addresses. Each container has its own page:

Container Role
middleman Reverse proxy, ACME, nginx-sso, librespeed, Paseo relay
vaultwarden Password manager
colony-psql Shared PostgreSQL (14)
chatterbox Matrix Synapse + bridges
jackflix Media stack
object MinIO, Harmonia Nix cache, HedgeDoc, wastebin
toot Bluesky PDS (Mastodon disabled)
waffletail Tailscale subnet router / exit node
qclk WireGuard management appliance
gam Terraria server

jam

A one-off: containers-ext.nix runs a raw systemd-nspawn container (not a my.containers instance, not NixOS) with its root on the jam LV, private user namespaces and a ve-jam veth. It gets the jam customer prefix (prefixes.jam, jam-cust in DNS) and SSH is forwarded to it from shill's public IP port 60022.

Notes

  • nix.settings.substituters is forced to just https://cache.nixos.org — shill sits next to the S3 cache on object, so it doesn't use it.
  • hercules.nix (Hercules CI agent + the nix-cache-gc timer for the S3 binary cache) exists but is currently disabled: the file is not imported by shill/default.nix.

Notable config files