bitcoind, clightning, run-tests: minor refactoring

bitcoind: use builtins.toFile
clightning: use boolToString
run-tests: remove leftover var
This commit is contained in:
Erik Arvstedt 2021-02-01 22:53:03 +01:00
parent 41fe9b0c1d
commit 7533f12ef1
No known key found for this signature in database
GPG key ID: 33312B944DD97846
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ let
network=${network}
bitcoin-datadir=${config.services.bitcoind.dataDir}
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
always-use-proxy=${if cfg.always-use-proxy then "true" else "false"}
always-use-proxy=${boolToString cfg.always-use-proxy}
bind-addr=${cfg.address}:${toString cfg.port}
bitcoin-rpcconnect=${config.services.bitcoind.rpc.address}
bitcoin-rpcport=${toString config.services.bitcoind.rpc.port}