lightning-loop: add regtest support

This commit is contained in:
Erik Arvstedt 2020-10-16 17:43:08 +02:00
parent 75ec85bea2
commit 46efd141a1
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -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}"}