230e5c539b901fab1946ec98861bc4c7aca875c9
- Node 26, en-US-only frontend build - Set NG_FORCE_TTY=false: under Nix's pty the Angular CLI spinner redraws forever and the frontend build never finishes - generate.sh: verify release tags against pinned wiz or mononaut fingerprints (mononaut signs since v3.3.0; key fetched from GitHub) - Newer mining-pool logos - nginx: serve the English site at / instead of redirecting - docs/fork-maintenance.md: reflect 3.3.2, Node 26 and the signer change Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nix-bitcoin (satstack fork)
NixOS modules for a Bitcoin node running bitcoind, lnd, electrs and mempool, with Tor onion services and host-generated secrets.
This is a trimmed fork of fort-nix/nix-bitcoin, which was archived in August 2026. Everything squirtle doesn't use has been removed. See docs/fork-maintenance.md for what was cut, what's left, and the per-release checklist.
Usage
# flake.nix
inputs.nix-bitcoin = {
url = "git+ssh://gitea@gitea.satstack.dev/pleb/nix-bitcoin.git";
inputs.nixpkgs.follows = "nixpkgs";
};
# in a nixosSystem's modules
inputs.nix-bitcoin.nixosModules.default
{
nix-bitcoin = {
generateSecrets = true; # writes /etc/nix-bitcoin-secrets on the host
operator = { enable = true; name = "alice"; };
nodeinfo.enable = true;
onionServices.bitcoind.public = true;
};
services.tor = { enable = true; client.enable = true; };
services.bitcoind = { enable = true; tor.proxy = true; };
services.lnd.enable = true;
services.electrs.enable = true;
services.mempool.enable = true; # also enables electrs
}
Packages come from the consumer's nixpkgs (pkgs.bitcoind, pkgs.lnd,
pkgs.electrs, pkgs.lndinit). The only package built here is mempool
(pkgs/mempool/).
What's in the repo
| Path | Contents |
|---|---|
modules/ |
bitcoind, lnd, electrs, mempool, plus secrets/, operator, security, onion-services, onion-addresses, nodeinfo |
pkgs/mempool/ |
mempool backend, frontend, rust-gbt and nginx config. generate.sh bumps the version and refreshes hashes |
pkgs/lib.nix |
systemd hardening and Tor helpers shared by the modules |
There is no test suite. Build squirtle in nix-pleb before switching,
and roll back (nixos-rebuild switch --rollback) if a service fails at
runtime.
License
MIT, see LICENSE.
Languages
Nix
94%
Shell
6%