flake: Name secret recipients for slop-broker
Build llm-agents / build (pull_request) Skipped

Approvals list host keys abbreviated, which says little about which box
a secret goes to. Add a `secretRecipients` output naming each system's
`my.secrets.key` and the `ageKeyFiles` keys, for the broker to evaluate
on `master` (slop-broker `secrets.names_attr`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jackos1998andClaude Opus 5.5 committed 2026-11-27 00:43:35 +00:00
1 parent eeb1f2d15c
commit f1e021e303
2 files changed
+8

No files matched your search

+3
View File
@@ -81,6 +81,9 @@ collects garbage in that store on every run, which the roots survive until they
[design](https://git.nul.ie/dev/slop-broker/src/branch/main/docs/design.md#secrets)).
- `secrets.names` labels `dev` and `slop-broker` in approvals (`lib.my.c.ageKeyFiles`); host keys
are shown abbreviated.
- The `secretRecipients` flake output names every key: each system's `my.secrets.key` by the
system's name, and the `lib.my.c.ageKeyFiles` keys. Once the broker supports
`secrets.namesAttr`, it evaluates this on `master` instead of `secrets.names`.
### `master` is protected
+5
View File
@@ -259,6 +259,11 @@
homeConfigurations = mapAttrs (_: s: s.configuration) nixfiles.config.home-manager.homes;
deploy = nixfiles.config.deploy-rs.rendered;
# Names for secret recipients' keys, which `slop-broker` shows in approvals
secretRecipients =
filterAttrs (_: key: key != null) (mapAttrs (_: c: c.config.my.secrets.key) self.nixosConfigurations)
// mapAttrs (_: lib.fileContents) lib.my.c.ageKeyFiles;
} //
(eachDefaultSystem (system:
let