From 6d13b26d0a5d42821028ce999653cff3771a3cc9 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Thu, 14 Jan 2021 13:24:13 +0100 Subject: [PATCH] onionAddresses: add more precise type for option 'access' --- modules/onion-addresses.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/onion-addresses.nix b/modules/onion-addresses.nix index 65809ea..302479e 100644 --- a/modules/onion-addresses.nix +++ b/modules/onion-addresses.nix @@ -45,17 +45,17 @@ let in { options.nix-bitcoin.onionAddresses = { access = mkOption { - type = types.attrs; + type = with types; attrsOf (listOf str); default = {}; description = '' - This option controls who is allowed to access onion hostnames. For - example the following allows the user operator to access the bitcoind - and clightning onion. + This option controls who is allowed to access onion addresses. + For example, the following allows user 'myuser' to access bitcoind + and clightning onion addresses: { - "operator" = [ "bitcoind" "clightning" ]; + "myuser" = [ "bitcoind" "clightning" ]; }; The onion hostnames can then be read from - /var/lib/onion-addresses/. + /var/lib/onion-addresses/myuser. ''; }; };