From 46efd141a194a6321558276943ce2f66c84d2222 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 16 Oct 2020 17:43:08 +0200 Subject: [PATCH] lightning-loop: add regtest support --- modules/lightning-loop.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lightning-loop.nix b/modules/lightning-loop.nix index 6260a12..af2a2fb 100644 --- a/modules/lightning-loop.nix +++ b/modules/lightning-loop.nix @@ -8,12 +8,13 @@ let secretsDir = config.nix-bitcoin.secretsDir; configFile = builtins.toFile "loop.conf" '' datadir=${cfg.dataDir} + network=${config.services.bitcoind.network} logdir=${cfg.dataDir}/logs tlscertpath=${secretsDir}/loop-cert tlskeypath=${secretsDir}/loop-key lnd.host=${builtins.elemAt config.services.lnd.rpclisten 0}:${toString config.services.lnd.rpcPort} - lnd.macaroondir=${config.services.lnd.dataDir}/chain/bitcoin/mainnet + lnd.macaroondir=${config.services.lnd.networkDir} lnd.tlspath=${secretsDir}/lnd-cert ${optionalString (cfg.proxy != null) "server.proxy=${cfg.proxy}"}