flake: Add slop-broker from its own repository

The broker, its NixOS and home-manager modules and the agents' guide
now live in the `slop-broker` repository, which this flake takes as an
input: its overlay provides `pkgs.slop-broker`, and the common modules
import `services.slop-broker*` and `programs.slop`. What's specific to
these boxes stays here: tmproot persistence for the broker and its
builder, `my.agents.slop` and the devshell's `slop` commands, which
`docs/slop-broker.md` describes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jackos1998andClaude Opus 5.5 committed 2026-11-24 23:45:27 +00:00
1 parent 75f6c1a064
commit 71ed076f12
10 files changed
+108 -4

No files matched your search

+1
View File
@@ -94,6 +94,7 @@ The laptop is indexed in [`mobile/README.md`](mobile/README.md).
## Misc
- [`misc/installer.md`](misc/installer.md) — the custom NixOS installer image.
- [`slop-broker.md`](slop-broker.md) — how these boxes use `slop-broker`, the agents' approval broker.
## A note on the assignment tables
@@ -42,8 +42,8 @@ username/password provider. Its cookie domain is `.nul.ie`; gated vhosts include
[Pocket ID](https://pocket-id.org) (`services.pocket-id`) is a passkey-only OpenID Connect
provider at `id.nul.ie`, for apps that sign in with OIDC (first the `slop-broker` approvals web
app). It is meant to replace nginx-sso's Google sign-in later, with oauth2-proxy in front of apps
that lack OIDC.
app, see [`slop-broker.md`](../../../../slop-broker.md)). It is meant to replace nginx-sso's
Google sign-in later, with oauth2-proxy in front of apps that lack OIDC.
- Listens on `127.0.0.1:1411` behind nginx and keeps its SQLite database in `/var/lib/pocket-id`
(persisted by `my.tmproot`). The `middleman/pocket-id-encryption-key` secret encrypts it.
+25
View File
@@ -0,0 +1,25 @@
# slop-broker
[`slop-broker`](https://git.nul.ie/dev/slop-broker) carries out privileged operations (SSH
commands, deploys, builds, and later secrets, DNS and previews) for the coding agents on
[`slop-cannon`](sites/home/slop-cannon.md) and other boxes, under a policy and usually after Dev
approves each one. Agents use the `slop` CLI.
The broker, its NixOS and home-manager modules, its design and the agents' guide live in its own
repository, which this flake takes as the `slop-broker` input. This page covers how these boxes use
it; for how it works, read the repository's
[design](https://git.nul.ie/dev/slop-broker/src/branch/main/docs/design.md).
## In this flake
- **Input:** `slop-broker` in [`flake.nix`](../flake.nix). Its overlay provides `pkgs.slop-broker`,
and the common modules import `services.slop-broker`, `services.slop-broker-builder`,
`services.slop-broker-cache` and `programs.slop`. Update it with `nix flake update slop-broker`.
- **Persistence:** [`tmproot.nix`](../nixos/modules/tmproot.nix) keeps `/var/lib/slop-broker` and
the builder's home when those services are enabled.
- **Agents:** `my.agents.slop` (in the shared `agents` home-manager module) installs `slop` and adds
the guide (`share/slop-broker/slop-tools.md`) as a Claude rule (`~/.claude/rules/slop.md`) and
as Codex's `AGENTS.md`.
- **Devshell:** `slop` and `slop-approve`, built from the locked input. `slop` uses
`.keys/slop-request.key` over SSH when that file exists; an approver key never goes in `.keys/`,
because agents can read the checkout.