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:
1 parent
75f6c1a064
commit
71ed076f12
10 files changed
+108
-4
No files matched your search
@@ -35,6 +35,27 @@ in
|
||||
help = "Remove home-manager flake.nix link";
|
||||
command = "rm -f ${homeFlake}";
|
||||
}
|
||||
{
|
||||
name = "slop";
|
||||
category = "utilities";
|
||||
help = "Ask slop-broker for privileged operations (`slop guide`); uses `.keys/slop-request.key` if present";
|
||||
# Built from this checkout, so it matches the branch. Without a key it uses `SLOP_BROKER`,
|
||||
# `~/.config/slop/config.toml` or vsock, as the installed client does.
|
||||
command = ''
|
||||
key="$PRJ_ROOT/.keys/slop-request.key"
|
||||
if [ -z "''${SLOP_BROKER-}" ] && [ -f "$key" ]; then
|
||||
export SLOP_BROKER=ssh:slop@palace.h.nul.ie
|
||||
export SLOP_SSH="ssh -i $key -o IdentitiesOnly=yes -o IdentityAgent=none"
|
||||
fi
|
||||
exec ${pkgs.slop-broker}/bin/slop "$@"
|
||||
'';
|
||||
}
|
||||
{
|
||||
name = "slop-approve";
|
||||
category = "utilities";
|
||||
help = "Answer slop-broker requests; its key stays outside the checkout, where agents can't read it";
|
||||
command = ''exec ${pkgs.slop-broker}/bin/slop-approve "$@"'';
|
||||
}
|
||||
{
|
||||
name = "ragenix";
|
||||
category = "utilities";
|
||||
|
||||
Reference in new issue
Block a user