Add comments to bitcoind.nix

This commit is contained in:
Bitcoin Txoko
2024-07-23 09:04:11 +02:00
committed by GitHub
parent ee6e107c58
commit be84d63fc4
+13 -1
View File
@@ -1,6 +1,12 @@
{config, ...}: { {config, ...}: {
### BITCOIND
# Bitcoind is enabled by default via secure-node.nix.
services.bitcoind = { services.bitcoind = {
enable = true; enable = true;
# Set this option to enable pruning with a specified MiB value.
# clightning is compatible with pruning. See
# https://github.com/ElementsProject/lightning/#pruning for more information.
# LND and electrs are not compatible with pruning.
prune = 0; prune = 0;
txindex = true; txindex = true;
zmqpubrawtx = "tcp://127.0.0.1:28333"; zmqpubrawtx = "tcp://127.0.0.1:28333";
@@ -15,10 +21,16 @@
"0.0.0.0/0" # Allow on all addresses "0.0.0.0/0" # Allow on all addresses
]; ];
}; };
# You can add options that are not defined in modules/bitcoind.nix as follows
# extraConfig = ''
# maxorphantx=110
# '';
}; };
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
config.services.bitcoind.port config.services.bitcoind.port
config.services.bitcoind.rpc.port config.services.bitcoind.rpc.port
]; ];
nix-bitcoin.onionServices.bitcoind.public = true; # Set this to accounce the onion service address to peers.
# The onion service allows accepting incoming connections via Tor.
# nix-bitcoin.onionServices.bitcoind.public = true;
} }