clightning: remove bitcoin-rpcuser option
Simplifies the clightning module.
This commit is contained in:
parent
65b5dab3d4
commit
ae1230e13b
|
@ -12,7 +12,7 @@ let
|
||||||
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
|
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
|
||||||
always-use-proxy=${if cfg.always-use-proxy then "true" else "false"}
|
always-use-proxy=${if cfg.always-use-proxy then "true" else "false"}
|
||||||
${optionalString (cfg.bind-addr != null) "bind-addr=${cfg.bind-addr}"}
|
${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
|
rpc-file-mode=0660
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
@ -54,12 +54,6 @@ in {
|
||||||
default = false;
|
default = false;
|
||||||
description = "Announce clightning Tor Hidden Service";
|
description = "Announce clightning Tor Hidden Service";
|
||||||
};
|
};
|
||||||
bitcoin-rpcuser = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
description = ''
|
|
||||||
Bitcoin RPC user
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = "/var/lib/clightning";
|
default = "/var/lib/clightning";
|
||||||
|
|
|
@ -75,7 +75,6 @@ in {
|
||||||
|
|
||||||
# clightning
|
# clightning
|
||||||
services.clightning = {
|
services.clightning = {
|
||||||
bitcoin-rpcuser = cfg.bitcoind.rpcuser;
|
|
||||||
proxy = cfg.tor.client.socksListenAddress;
|
proxy = cfg.tor.client.socksListenAddress;
|
||||||
enforceTor = true;
|
enforceTor = true;
|
||||||
always-use-proxy = true;
|
always-use-proxy = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user