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

Release notes 0.2.1

bitcoind data dir no longer writable by its group

The bitcoind data dir now has mode 0750 instead of 0770, like the Core Lightning data dir. Members of the bitcoind group, like the operator user, can still use bitcoin-cli and read the files they could read before, but they can’t write to the data dir. See Upgrading to config version 0.2.1.

Root runs CLI commands as the service user

bitcoin-cli now reads the config that bitcoinix generates from the Nix store, and not the copy in the data dir. When root runs bitcoin-cli, it runs as the bitcoin user. With the bitcoind-remote.nix preset, the credentials for the remote node are now in /run/bitcoind/.cookie and not in bitcoin.conf.

When root runs lightning-cli or lnconnect-clnrest, they run as the clightning user, like lncli runs as the lnd user. With services.clightning.plugins.clnrest.lnconnect.onion, the clightning user gets its own copy of the clnrest onion address for this. The option no longer needs the operator role or explicit onion access for the operator user. The operator user needs this access only to run lnconnect-clnrest as itself. lnconnect-clnrest reads the admin rune and clnrest’s cert only from regular files of the clightning user, also when the operator runs it.

So as root, these commands can’t read a file that only root can read, for example a file that you pass to bitcoin-cli -rpccookiefile.

Core Lightning replication dirs no longer writable by its group

With services.clightning.replication, the local replica dir (with local.setupDirectory) and /var/cache/clightning-replication (with sshfs.destination or encrypt) now have mode 0750 instead of 0770, like the Core Lightning data dir. Members of the clightning group, like the operator user, can still read them, but only clightning writes there. See Upgrading to config version 0.2.1.

Core Lightning wallet setting is world-readable

bitcoinix writes services.clightning.wallet into clightning’s config file in the Nix store, which every local user can read. The option’s description now says so. If your setting holds a PostgreSQL connection string with a password, change that password and use a connection that doesn’t put it in the setting.

lnd’s REST onion service forwards to a Unix socket

With services.lnd.lndconnect.onion, lnd also serves REST on the Unix socket /run/lnd-rest/rest.sock, and the lnd-rest onion service forwards to this socket instead of lnd’s REST port. Only lnd can create the socket, so the onion service reaches only lnd, also while lnd restarts. Only lnd and Tor can open the socket’s directory. The directory is mounted on itself with nosymfollow, so Tor doesn’t follow symlinks in it. Tor starts only after this mount, and the mount fails to start if the directory is missing. lnd stops or restarts with the mount, before it. The onion address and port stay the same, so wallets don’t need to pair again. lnd keeps listening on services.lnd.restAddress for RTL and local clients.

netns-isolation keeps other local users off service ports

Without netns-isolation, clnrest, electrs and Fulcrum listen on the host’s loopback address. While one of them is down, for example during a restart or an update, another local user can listen on its port and receive the clnrest rune from ZEUS or a wallet’s addresses through the onion service. The docs now explain this on the ZEUS and electrs and Fulcrum pages and under network namespace isolation, which prevents it. lnd’s onion service forwards to a Unix socket and isn’t affected. The WireGuard preset and direct REST connections can’t use netns-isolation, so the ZEUS page recommends not to give untrusted users an account on such a node.

lndconnect and lnconnect-clnrest need the onion address

With services.lnd.lndconnect.onion or services.clightning.plugins.clnrest.lnconnect.onion, lndconnect and lnconnect-clnrest now fail when they can’t read the onion address, for example while Tor still starts or when the user has no access to it (nix-bitcoin.onionAddresses.access). Before, they asked public services for the node’s IP over clearnet and printed a URL with that IP and the admin macaroon or rune. A --host argument still replaces the onion address, and an empty --host is now an error. With onion, --localhost and --localip only worked together with an empty --host or while the onion address was missing. For a local URL, pass --host 127.0.0.1 or --host with the node’s LAN IP.

netns-isolation forwards only namespace traffic

With netns-isolation, the host forwarded traffic between all its interfaces. So on a node with a LAN and a VPN, or with two LANs, a host on one side could reach the other side through the node. Now the host forwards only the connections that the service namespaces open and their replies, and drops all other forwarded IPv4 traffic. The new option nix-bitcoin.netns-isolation.restrictForwarding turns this off. Evaluation fails while networking.nat, Docker or another module turns on net.ipv4.conf.all.forwarding, until you set the option to false. See Upgrading to config version 0.2.1.

netns-isolation rejects an nftables ruleset flush

With networking.nftables and iptables-nft, netns-isolation now fails evaluation when networking.nftables.flushRuleset is on, or when networking.nftables.tables has a table that iptables-nft uses, like ip nat, ip filter or ip mangle. The flush deleted the NAT rule of the namespace bridge, the forwarding rules of nb-netns-forward and the host firewall, and such a table replaced the iptables table of the same name. Without the NAT rule, the namespaces couldn’t reach anything beyond the host. Without the forwarding rules, the host forwarded traffic between all its interfaces. Without the mangle tables, the host firewall didn’t check the reverse path. NixOS turns the flush on by default when networking.nftables.ruleset or rulesetFile is set or system.stateVersion is older than 23.11. A firewall that runs pkgs.iptables-legacy as networking.firewall.package is exempt. The first deploy after such a fix still runs the old deletions once. See Upgrading to config version 0.2.1.

nb-netns-bridge now also stops and starts again when its NAT rule is gone. Before, the stop failed and left the bridge behind, so the next start failed too. Now a start deletes such a bridge, which still has its address. When another link has the name nb-br, the start fails and leaves that link alone.

dhcpcd 10.5.2

The nixpkgs update brings dhcpcd 10.5.2, the default DHCP client of NixOS, which fixes CVE-2026-56113, CVE-2026-56114, CVE-2026-56116 and CVE-2026-56117. Nodes whose system uses bitcoinix’s nixpkgs, like the deployment examples, get it with this release; other nodes get it once their own nixpkgs has it. See Upgrading to config version 0.2.1.

.NET 10.0.15 for BTCPay Server and NBXplorer

The nixpkgs update moves BTCPay Server and NBXplorer to the .NET 10.0.15 runtime, a security release that fixes several ASP.NET Core denial of service, elevation of privilege and information disclosure vulnerabilities. NBXplorer is updated from 2.6.17 to 2.6.23, which fixes Postgres startup retries and an indexer that could hang after an error.

Other package updates

The nixpkgs update also brings these updates to nodes whose system uses bitcoinix’s nixpkgs. nginx 1.30.8 fixes CVE-2026-132779, excessive CPU use with the ssl_early_data directive. bitcoinix doesn’t set it; check your own nginx configuration. rsync 3.5.2 fixes CVE-2026-119741, a denial of service against an rsync sender, such as a public rsync daemon. The security fix of OpenSSH 10.6p2 concerns only systems with musl and without PAM, not NixOS.

Cashu mint service

The optional services.cdk-mintd service runs a Cashu mint using nixpkgs’ cashu-cdk package. Select local LND or Core Lightning for Lightning payments; on-chain payments through a separate BDK wallet and Bitcoin Core are opt-in. The module includes secret generation, systemd hardening, namespace isolation and Tor onion access. With services.backups, it also stages consistent mint data and signing secrets while the mint is stopped. Pending starts wait for staging to finish; explicit stops of the mint or its backends during shutdown or staging take precedence over the backup’s pending restart. A persistent initialization guard prevents recreating a lost database with the old signing seed; restoration requires the spent-proof state as well as the seed. See Run a Cashu mint for setup and recovery.

Orchard Cashu mint dashboard

Add cashu-orchard 1.12.1 and the optional services.orchard service for the local CDK mint. It provides mint analytics and management with a separate service account, read-only database access and mutually authenticated TLS for CDK’s management RPC. Localhost access, onion services and network namespace isolation are supported. The Tor preset also proxies external dashboard, AI and Telegram requests. With the proxy enabled, public URL and TCP port checks resolve hostnames through Tor and reject private destinations without falling back to local DNS or direct connections. Public icon fetches stay on the proxy even for local-looking names. Alternative loopback mint addresses and IPv6 Tor SOCKS listeners are supported.

AI is off by default. The server enforces this switch for inference, scheduled agents, Telegram conversations and agent tools. Turning AI off blocks new work; provider requests already in flight may finish. Active schedules resume when AI is enabled again. See the Orchard guide for setup, AI data sharing and recovery.

IPv6 addresses for LND RPC

services.lnd.rpcAddress accepts IPv6 addresses with or without brackets. LND, lncli, macaroon creation, charge-lnd and Unbeholden LNURL use the same gRPC endpoint, including when the certificate names a wildcard address. Empty hosts, addresses containing whitespace, and malformed brackets fail evaluation. Upgrading a node with an empty RPC host

IPv6 addresses in service URLs

When a service listens on an IPv6 address, the URLs and endpoints that bitcoinix gives other services to reach it now put the address in brackets. For example, with services.clightning.plugins.clnrest.address = "::1", RTL’s backend URL is now https://[::1]:3010 instead of https://::1:3010. This applies to RTL, Unbeholden LNURL’s clnrest URL, mempool’s nginx backend, BTCPay Server’s NBXplorer and bitcoind endpoints, bitcoind’s I2P SAM address and the addresses that nodeinfo shows.

Services stop when their public address command fails

bitcoind, lnd and clightning now run getPublicAddressCmd before they write their config, and fail to start when the command fails or prints nothing. The journal then shows the error of the command, or that it printed no address.

With a public onion service, this happens when the onion-addresses service can’t read the onion address of the service. The services also failed then before, but later and with an error that didn’t name the missing address. bitcoind failed with Cannot resolve -externalip address: '' and clightning with Cannot use wildcard address. lnd opened its wallet and then failed with unable to encode IP <nil>.

A custom command that printed an address and then failed worked before. It now stops the service.

Operator commands with sudo-rs

With security.sudo-rs.enable, the operator user can now run commands as the users in nix-bitcoin.operator.allowRunAsUsers, like with sudo and doas. Before, the rule went only to sudo and doas, so lncli and lndconnect, which switch to the lnd user with sudo -u, failed for the operator.

bitcoind-remote preset rejects netns-isolation

The bitcoind-remote.nix preset now fails evaluation together with nix-bitcoin.netns-isolation.enable. The docs already said that the two don’t work together.

Service guides on their own pages

The service guide is split into one page per service, listed under Services. Links to sections of the old page lead to the new pages.