From b3e7552b885076f2ca804c1a8c5e379391d1a434 Mon Sep 17 00:00:00 2001 From: Pierre Penninckx Date: Sat, 23 Nov 2024 22:56:22 +0100 Subject: [PATCH] [doc] add forgotten example in sops module documentation (#366) --- modules/blocks/sops/docs/default.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/blocks/sops/docs/default.md b/modules/blocks/sops/docs/default.md index f833c48..03ca5ae 100644 --- a/modules/blocks/sops/docs/default.md +++ b/modules/blocks/sops/docs/default.md @@ -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}