Skip to content

Commit

Permalink
[doc] add forgotten example in sops module documentation (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibizaman authored Nov 23, 2024
1 parent dde0d49 commit b3e7552
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/blocks/sops/docs/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,20 @@ This example shows how to use this sops block
to fulfill the request of a module using the [secret contract][] under the option `services.mymodule.mysecret`.

```nix
shb.sops.secret."mymodule/mysecret".request = config.services.mymodule.mysecret.request;
services.mymodule.mysecret.result = config.shb.sops.secret."mymodule/mysecret".result;
```

### Manual Module {#blocks-sops-usage-manual}

The provider module can be used on its own, without a requester module:

```nix
shb.sops.secret."mymodule/mysecret".request = {
mode = "0400";
owner = "owner";
};
services.mymodule.mysecret.path = config.sops.secret."mymodule/mysecret".result.path;
```

## Options Reference {#blocks-sops-options}
Expand Down

0 comments on commit b3e7552

Please sign in to comment.