From 11da50520b4ac1734c48b841e1c0999567f18e13 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 20 Sep 2019 13:35:26 -0400 Subject: [PATCH] Support configuration for the issuer location. --- nixos/modules/private-storage.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nixos/modules/private-storage.nix b/nixos/modules/private-storage.nix index ca44959e..39972965 100644 --- a/nixos/modules/private-storage.nix +++ b/nixos/modules/private-storage.nix @@ -56,6 +56,14 @@ in The port number on which to service storage clients. ''; }; + services.private-storage.issuerRootURL = lib.mkOption + { default = "https://issuer.privatestorage.io/"; + type = lib.types.str; + example = lib.literalExample "https://example.invalid/"; + description = '' + The URL of the Ristretto issuer service to announce. + ''; + }; }; # Define configuration based on values given for our options - starting with @@ -96,9 +104,8 @@ in # Turn on our plugin. plugins = "privatestorageio-zkapauthz-v1"; }; - # It doesn't have any configuration *yet*. "storageserver.plugins.privatestorageio-zkapauthz-v1" = - { + { "ristretto-issuer-root-url" = cfg.issuerRootURL; }; }; }; -- GitLab