clightning: remove bitcoin-rpcuser option

Simplifies the clightning module.
This commit is contained in:
nixbitcoin 2020-06-10 15:31:57 +00:00
parent 65b5dab3d4
commit ae1230e13b
No known key found for this signature in database
GPG Key ID: DD11F9AD5308B3BA
2 changed files with 1 additions and 8 deletions

View File

@ -12,7 +12,7 @@ let
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
always-use-proxy=${if cfg.always-use-proxy then "true" else "false"}
${optionalString (cfg.bind-addr != null) "bind-addr=${cfg.bind-addr}"}
bitcoin-rpcuser=${cfg.bitcoin-rpcuser}
bitcoin-rpcuser=${config.services.bitcoind.rpcuser}
rpc-file-mode=0660
'';
in {
@ -54,12 +54,6 @@ in {
default = false;
description = "Announce clightning Tor Hidden Service";
};
bitcoin-rpcuser = mkOption {
type = types.str;
description = ''
Bitcoin RPC user
'';
};
dataDir = mkOption {
type = types.path;
default = "/var/lib/clightning";

View File

@ -75,7 +75,6 @@ in {
# clightning
services.clightning = {
bitcoin-rpcuser = cfg.bitcoind.rpcuser;
proxy = cfg.tor.client.socksListenAddress;
enforceTor = true;
always-use-proxy = true;