onionAddresses: add more precise type for option 'access'
This commit is contained in:
parent
93562f76dd
commit
6d13b26d0a
@ -45,17 +45,17 @@ let
|
|||||||
in {
|
in {
|
||||||
options.nix-bitcoin.onionAddresses = {
|
options.nix-bitcoin.onionAddresses = {
|
||||||
access = mkOption {
|
access = mkOption {
|
||||||
type = types.attrs;
|
type = with types; attrsOf (listOf str);
|
||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
This option controls who is allowed to access onion hostnames. For
|
This option controls who is allowed to access onion addresses.
|
||||||
example the following allows the user operator to access the bitcoind
|
For example, the following allows user 'myuser' to access bitcoind
|
||||||
and clightning onion.
|
and clightning onion addresses:
|
||||||
{
|
{
|
||||||
"operator" = [ "bitcoind" "clightning" ];
|
"myuser" = [ "bitcoind" "clightning" ];
|
||||||
};
|
};
|
||||||
The onion hostnames can then be read from
|
The onion hostnames can then be read from
|
||||||
/var/lib/onion-addresses/<user>.
|
/var/lib/onion-addresses/myuser.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user