5a0ae36c85
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.
21 lines
587 B
Nix
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.
|
|
'';
|
|
};
|
|
}
|