From f0850d3f2346ae2b7a05e96b8c79a44b5fc8376b Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 1 Feb 2021 22:53:01 +0100 Subject: [PATCH] btcpayserver: reorder config settings Move 'bind' and 'port' next to each other and to the top. --- modules/btcpayserver.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/btcpayserver.nix b/modules/btcpayserver.nix index f47bd9f..6466634 100644 --- a/modules/btcpayserver.nix +++ b/modules/btcpayserver.nix @@ -151,13 +151,13 @@ in { systemd.services.btcpayserver = let configFile = builtins.toFile "config" ('' network=${config.services.bitcoind.network} - postgres=User ID=${cfg.btcpayserver.user};Host=/run/postgresql;Database=btcpaydb + bind=${cfg.btcpayserver.address} + port=${toString cfg.btcpayserver.port} socksendpoint=${cfg.tor.client.socksListenAddress} btcexplorerurl=http://${cfg.nbxplorer.address}:${toString cfg.nbxplorer.port}/ btcexplorercookiefile=${cfg.nbxplorer.dataDir}/${config.services.bitcoind.makeNetworkName "Main" "RegTest"}/.cookie - bind=${cfg.btcpayserver.address} + postgres=User ID=${cfg.btcpayserver.user};Host=/run/postgresql;Database=btcpaydb ${optionalString (cfg.btcpayserver.rootpath != null) "rootpath=${cfg.btcpayserver.rootpath}"} - port=${toString cfg.btcpayserver.port} '' + optionalString (cfg.btcpayserver.lightningBackend == "clightning") '' btclightning=type=clightning;server=unix:///${cfg.clightning.dataDir}/bitcoin/lightning-rpc '');