nbxplorer: fix bitcoind, liquidd settings
- Add nbxplorer to whitelists. This is recommended by the nbxplorer docs and guarantees that nbxplorer can always p2p-connect to bitcoind/liquidd. - Enable bitcoind/liquidd p2p servers via `listen`.
This commit is contained in:
parent
f61e928139
commit
82d910e937
@ -106,12 +106,9 @@ in {
|
|||||||
inherit options;
|
inherit options;
|
||||||
|
|
||||||
config = mkIf cfg.btcpayserver.enable {
|
config = mkIf cfg.btcpayserver.enable {
|
||||||
services.bitcoind.enable = true;
|
services.bitcoind = {
|
||||||
services.clightning.enable = mkIf (cfg.btcpayserver.lightningBackend == "clightning") true;
|
enable = true;
|
||||||
services.lnd.enable = mkIf (cfg.btcpayserver.lightningBackend == "lnd") true;
|
rpc.users.btcpayserver = {
|
||||||
services.liquidd.enable = mkIf cfg.btcpayserver.lbtc true;
|
|
||||||
|
|
||||||
services.bitcoind.rpc.users.btcpayserver = {
|
|
||||||
passwordHMACFromFile = true;
|
passwordHMACFromFile = true;
|
||||||
rpcwhitelist = cfg.bitcoind.rpc.users.public.rpcwhitelist ++ [
|
rpcwhitelist = cfg.bitcoind.rpc.users.public.rpcwhitelist ++ [
|
||||||
"setban"
|
"setban"
|
||||||
@ -119,6 +116,22 @@ in {
|
|||||||
"getpeerinfo"
|
"getpeerinfo"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
# Enable p2p connections
|
||||||
|
listen = true;
|
||||||
|
extraConfig = ''
|
||||||
|
whitelist=${nbLib.address cfg.nbxplorer.address}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
services.clightning.enable = mkIf (cfg.btcpayserver.lightningBackend == "clightning") true;
|
||||||
|
services.lnd.enable = mkIf (cfg.btcpayserver.lightningBackend == "lnd") true;
|
||||||
|
services.liquidd = mkIf cfg.btcpayserver.lbtc {
|
||||||
|
enable = true;
|
||||||
|
# Enable p2p connections
|
||||||
|
listen = true;
|
||||||
|
extraConfig = ''
|
||||||
|
whitelist=${nbLib.address cfg.nbxplorer.address}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.lnd.macaroons.btcpayserver = mkIf (cfg.btcpayserver.lightningBackend == "lnd") {
|
services.lnd.macaroons.btcpayserver = mkIf (cfg.btcpayserver.lightningBackend == "lnd") {
|
||||||
inherit (cfg.btcpayserver) user;
|
inherit (cfg.btcpayserver) user;
|
||||||
|
Loading…
Reference in New Issue
Block a user