diff --git a/morph/grid/hro-cloud/config.json b/morph/grid/hro-cloud/config.json index dca2b2ec9e37228753e7d3c0f5808eee0ee360a8..191e375166967d4f7d06833196fbac209615c940 100644 --- a/morph/grid/hro-cloud/config.json +++ b/morph/grid/hro-cloud/config.json @@ -4,6 +4,7 @@ , "publicKeyPath": "./public-keys" , "monitoringvpnEndpoint": "monitoring.deerfield.leastauthority.com:51820" , "passValue": 1000000 +, "tokensPerVoucher": 150000 , "issuerDomains": [ "payments.deerfield.leastauthority.com" ] diff --git a/morph/lib/issuer.nix b/morph/lib/issuer.nix index 86c46a14762f0b9e1aba6602140bc0a2bc245e7c..66791142fe8f353934ae97d5ea34c1031afc0db1 100644 --- a/morph/lib/issuer.nix +++ b/morph/lib/issuer.nix @@ -3,7 +3,7 @@ { lib, config, ...}: let inherit (config.grid) privateKeyPath; - inherit (config.grid.issuer) issuerDomains allowedChargeOrigins; + inherit (config.grid.issuer) issuerDomains allowedChargeOrigins tokensPerVoucher; in { imports = [ ./monitoringvpn-client.nix @@ -25,6 +25,16 @@ in { to allow. ''; }; + + tokensPerVoucher = lib.mkOption { + default = null; + type = lib.types.nullOr lib.types.int; + example = 50000; + description = '' + If not null, a value to pass to PaymentServer for + ``--tokens-per-voucher``. + ''; + }; }; config = { @@ -58,6 +68,7 @@ in { inherit (config.grid) letsEncryptAdminEmail; inherit allowedChargeOrigins; domains = issuerDomains; + inherit tokensPerVoucher; }; services.private-storage.monitoring.exporters.node.enable = true;