Skip to content

Commit

Permalink
clightning: remove bitcoin-rpcuser option
Browse files Browse the repository at this point in the history
Simplifies the clightning module.
  • Loading branch information
nixbitcoin committed Jul 21, 2020
1 parent 65b5dab commit ae1230e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions modules/clightning.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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";
Expand Down
1 change: 0 additions & 1 deletion modules/presets/secure-node.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ in {

# clightning
services.clightning = {
bitcoin-rpcuser = cfg.bitcoind.rpcuser;
proxy = cfg.tor.client.socksListenAddress;
enforceTor = true;
always-use-proxy = true;
Expand Down

0 comments on commit ae1230e

Please sign in to comment.