move electrs.onionport option

Only used in secure-node.nix
This commit is contained in:
Erik Arvstedt 2020-04-07 22:47:40 +02:00
parent 74fbfa3a5d
commit 681dbaf328
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 8 additions and 6 deletions

View File

@ -44,11 +44,6 @@ in {
default = 50001;
description = "RPC port.";
};
onionport = mkOption {
type = types.ints.u16;
default = 50002;
description = "Port on which to listen for tor client connections.";
};
extraArgs = mkOption {
type = types.separatedString " ";
default = "";

View File

@ -21,6 +21,14 @@ let
in {
imports = [ ../modules.nix ];
options = {
services.electrs.onionport = mkOption {
type = types.ints.u16;
default = 50002;
description = "Port on which to listen for tor client connections.";
};
};
config = {
# For backwards compatibility only
nix-bitcoin.secretsDir = mkDefault "/secrets";
@ -90,7 +98,6 @@ in {
services.electrs = {
port = 50001;
enforceTor = true;
onionport = 50002;
TLSProxy.enable = true;
TLSProxy.port = 50003;
};