From be84d63fc47f2de0c64658cc5f2b6225ec0f2752 Mon Sep 17 00:00:00 2001 From: Bitcoin Txoko <142011724+bitcointxoko@users.noreply.github.com> Date: Tue, 23 Jul 2024 09:04:11 +0200 Subject: [PATCH] Add comments to bitcoind.nix --- system/bitcoin/bitcoind.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/system/bitcoin/bitcoind.nix b/system/bitcoin/bitcoind.nix index 9d47c36..5b19d55 100644 --- a/system/bitcoin/bitcoind.nix +++ b/system/bitcoin/bitcoind.nix @@ -1,6 +1,12 @@ {config, ...}: { + ### BITCOIND + # Bitcoind is enabled by default via secure-node.nix. services.bitcoind = { 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; txindex = true; zmqpubrawtx = "tcp://127.0.0.1:28333"; @@ -15,10 +21,16 @@ "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 = [ config.services.bitcoind.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; }