diff --git a/docs/slop-broker.md b/docs/slop-broker.md index 3ddd343..8425fef 100644 --- a/docs/slop-broker.md +++ b/docs/slop-broker.md @@ -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 diff --git a/flake.nix b/flake.nix index 39c16b2..97171e8 100644 --- a/flake.nix +++ b/flake.nix @@ -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