Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

bitcoinix

Introduction

bitcoinix is a collection of Nix packages and NixOS modules for deploying full-featured Bitcoin and Lightning nodes with an emphasis on security.

Use it for personal or merchant wallets, public infrastructure or Bitcoin application backends, on dedicated hardware, in a virtual machine or in a container. You don’t need previous experience with Nix. bitcoinix is used in production.

bitcoinix is a community fork of nix-bitcoin, which was archived in August 2026. The NixOS options keep the nix-bitcoin.* prefix, so existing configurations keep working. See Migrate from nix-bitcoin to switch a nix-bitcoin node to bitcoinix.

Features

  • Bitcoin Core, with Core Lightning or LND
  • Electrum servers (electrs, Fulcrum), the mempool explorer, BTCPay Server and the RTL web interface
  • Unbeholden Wallet, a watch-only browser wallet for air-gapped signers
  • Mobile wallet connections, e.g. ZEUS via Tor or WireGuard
  • Helpers: nodeinfo, backups, and a non-root operator user for the client tools

The README lists all services and plugins, the module options list their options.

Software versions

This release packages or pins the following software. Each version links to the project’s release notes, tag or source directory:

PackageVersionChannel
bitcoind32.1unstable
btcpayserver2.4.7unstable
cashu-cdk0.18.3unstable
cashu-orchard1.12.1local
charge-lnd0.3.2unstable
clboss0.17.3unstable
clightning26.06.10unstable
clightning-plugins/clnrest0.2.0local
clightning-plugins/currencyrate0.1.0local
clightning-plugins/feeadjuster0.1.0-f0d33fdlocal
clightning-plugins/monitor0.1.0-f0d33fdlocal
clightning-plugins/rebalance0.1.0-f0d33fdlocal
clightning-plugins/zmq0.1.0-f0d33fdlocal
electrs0.12.1unstable
extra-container1.0.1unstable
fulcrum2.1.4unstable
hwi3.2.0local
krops1.31.1local
lnd0.21.8-betaunstable
lndconnect0.2.1unstable
lndinit0.1.38-betaunstable
mempool-backend3.3.2local
mempool-frontend3.3.2local
mempool-rust-gbt3.3.2local
nbxplorer2.6.23unstable
rtl0.15.17unstable
trustedcoin0.8.7unstable
unbeholden-lnurl0.4.0local
unbeholden-wallet0.4.0local

All nixpkgs packages come from the single nixpkgs input, which tracks nixos-unstable. Channel local packages are built by bitcoinix from pinned sources, except hwi, which wraps nixpkgs’ package. krops is the tool of the legacy krops deployment. The flake NixOS module uses the locked unstable package set by default, including for local builds. Non-flake module imports and nix-bitcoin.useVersionLockedPkgs = false use your system’s unstable nixpkgs instead. Overriding bitcoinix’s nixpkgs input also replaces its tested pin. In these setups, service versions depend on your chosen revision; review the package migration guidance before updating it.

Security

  • Only the services you enable and their dependencies are installed.
  • Each service runs as its own user and is confined with systemd sandboxing. Network namespace isolation (nix-bitcoin.netns-isolation) can further restrict which services can reach each other.
  • The secure-node.nix preset sends outgoing connections through Tor, adds onion services for incoming connections, enables the firewall, turns off SSH password login and replaces sudo with doas.
  • Release tags are signed by the maintainers. fetch-release and update-nix-bitcoin in the deployment shell verify the signature before they use a release.

Where to start

  1. Hardware requirements: choose a machine for your node.
  2. Installation: set up a new node from scratch. To add bitcoinix to an existing NixOS configuration, start from the examples.
  3. Configuration and maintenance: customize services and allow external connections.
  4. Using services: connect wallets and manage the services.
  5. Upgrading: read this before you update bitcoinix.
  6. Release notes: review notable changes by release.
  7. FAQ

Some pages still come from nix-bitcoin and are being reviewed. If something is wrong or doesn’t work, please open an issue.