diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 12:19:00 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 12:19:00 -0500 |
| commit | 3eeb437ed2ba5ec983eb738c7e759cbb2d445ed1 (patch) | |
| tree | 9e6e793f2c945dff613bcdec979c526a9f2c6483 /hosts/poweredge/bitcoind.nix | |
| parent | c2079b5de000b4ac1c0aef4034c94223c83613cb (diff) | |
| download | nixos-3eeb437ed2ba5ec983eb738c7e759cbb2d445ed1.tar.xz nixos-3eeb437ed2ba5ec983eb738c7e759cbb2d445ed1.zip | |
bitcoind rpc config
Diffstat (limited to 'hosts/poweredge/bitcoind.nix')
| -rw-r--r-- | hosts/poweredge/bitcoind.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/hosts/poweredge/bitcoind.nix b/hosts/poweredge/bitcoind.nix index cff9cd3..e282234 100644 --- a/hosts/poweredge/bitcoind.nix +++ b/hosts/poweredge/bitcoind.nix @@ -15,16 +15,24 @@ }; config = { lib, pkgs, config, ... }: let - btcPort = 8333; + p2pPort = 8333; + rpcPort = 8332; in { # Network + networking.enableIPv6 = false; networking.interfaces.eth0.useDHCP = true; - networking.firewall.allowedTCPPorts = [ btcPort ]; + networking.firewall.allowedTCPPorts = [ p2pPort rpcPort ]; # Bitcoin services.bitcoind."main" = { enable = true; - port = btcPort; + port = p2pPort; + rpc.port = rpcPort; + rpc.users.timmy.passwordHMAC = "7557196eec6e3e062a57b0720abff7cf$617211e94b964f548cfbb5c23590f690c2940e424fffe72485276493f1cb0b29"; + extraConfig = '' + rpcallowip=192.168.1.0/24 + rpcbind=0.0.0.0 + ''; }; system.stateVersion = "25.11"; |
