1
0
Fork 0
selfhostblocks/modules/contracts/secret/dummyModule.nix
Pierre Penninckx 5a0ae36c85
update secret contract (#311)
This makes the secret contract better (IMNSHO):

- Improves documentation, explains better the reasoning behind the
contract.
- Makes it easier to create an option implementing the secret contract.
2024-10-01 21:01:00 +00:00

21 lines
587 B
Nix

{ pkgs, lib, ... }:
let
contracts = pkgs.callPackage ../. {};
in
{
options.shb.contracts.secret = contracts.secret.mkOption {
description = ''
Contract for secrets between a requester module
and a provider module.
The requester communicates to the provider
some properties the secret should have
through the `request` options.
The provider reads from the `request` options
and creates the secret as requested.
It then communicates to the requester where the secret can be found
through the `result` options.
'';
};
}