clightning: remove redundant option 'bitcoin-rpcconnect'

This commit is contained in:
Erik Arvstedt 2020-10-16 17:43:00 +02:00
parent abd32cde30
commit c24ac5d363
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 3 additions and 10 deletions

View File

@ -12,7 +12,8 @@ let
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
always-use-proxy=${if cfg.always-use-proxy then "true" else "false"}
bind-addr=${cfg.bind-addr}:${toString cfg.bindport}
${optionalString (cfg.bitcoin-rpcconnect != null) "bitcoin-rpcconnect=${cfg.bitcoin-rpcconnect}"}
bitcoin-rpcconnect=${builtins.elemAt config.services.bitcoind.rpcbind 0}
bitcoin-rpcport=${toString config.services.bitcoind.rpc.port}
bitcoin-rpcuser=${config.services.bitcoind.rpc.users.public.name}
rpc-file-mode=0660
${cfg.extraConfig}
@ -61,11 +62,6 @@ in {
default = false;
description = "Announce clightning Tor Hidden Service";
};
bitcoin-rpcconnect = mkOption {
type = types.nullOr types.str;
default = null;
description = "The bitcoind RPC host to connect to.";
};
dataDir = mkOption {
type = types.path;
default = "/var/lib/clightning";

View File

@ -267,10 +267,7 @@ in {
};
systemd.services.bitcoind-import-banlist.serviceConfig.NetworkNamespacePath = "/var/run/netns/nb-bitcoind";
services.clightning = {
bitcoin-rpcconnect = netns.bitcoind.address;
bind-addr = netns.clightning.address;
};
services.clightning.bind-addr = netns.clightning.address;
services.lnd = {
listen = netns.lnd.address;