Upgrading to config version 0.1.1
Liquid support removed
Liquid support has been removed, including the Elements daemon, liquid-swap, and BTCPay Server’s LBTC integration. Liquid peg-outs were suspended after the September 2026 Elements consensus bug (incident assessment).
If you used Liquid, remove services.liquidd, services.btcpayserver.lbtc, and any
Liquid-specific onion service or network namespace settings from your configuration.
Upgrading does not delete Liquid data. These files stay on the node:
- the data directory (default:
/var/lib/liquidd), which holds your Liquid wallets - the secret
liquid-rpcpasswordin the secrets directory (default:/etc/nix-bitcoin-secrets) - the onion service keys in
/var/lib/tor/onion/liquidd, if Liquid had an onion service (the default with thesecure-node.nixpreset)
The backups service no longer includes the data directory. To keep backing up the
wallets without the chain data (as before, unless with-bulk-data was set), add:
services.backups.extraFiles = [
"- /var/lib/liquidd/*/blocks"
"- /var/lib/liquidd/*/chainstate"
"- /var/lib/liquidd/*/indexes"
"/var/lib/liquidd"
];
To access the wallets later, run upstream Elements Core 23.3.4 or later on a copy of
the data directory. Earlier versions, including the elementsd package in
nixpkgs 26.05, lack the fix for that bug.
Delete the files above once you no longer need them.
netns-exec wrapper removed
The netns-exec wrapper has been removed. Its namespace allowlist had been empty
since JoinMarket was removed, so it rejected every namespace. To run a command in a
service network namespace, use sudo ip netns exec nb-<service> <command>.
If you set nix-bitcoin.netns-isolation.allowedUser, remove it from your configuration.
Lightning Pool and Lightning Loop support removed
Lightning Pool and Lightning Loop support, including RTL’s Loop integration, has
also been removed. Remove services.lightning-pool, services.lightning-loop,
services.rtl.nodes.lnd.loop, and any Pool- or Loop-specific onion service or
network namespace settings from your configuration.
If you still need either service, arrange a separately managed deployment before
upgrading. The services stop running after the upgrade, and their packages and
CLI wrappers are no longer installed by bitcoinix. Existing data directories
(default: /var/lib/lightning-pool and /var/lib/lightning-loop) and Loop secrets
(loop-key and loop-cert in the secrets directory) are retained. Keep these
files for the separately managed deployment.
Before upgrading, make sure no Loop swap is in progress (loop listswaps). Once a
Loop Out has revealed its preimage, its sweep must confirm before the HTLC expires,
otherwise the swap amount is lost. Pool account funds stay locked until the
account expires; to recover them, run poold with the retained data directory.
BTCPay Server wallet UTXO scanning disabled by default
BTCPay Server’s wallet UTXO scan is now disabled by default. The btcpayserver
RPC user no longer has permission to call scantxoutset, because a scan can keep
bitcoind busy for minutes. If you use this feature, explicitly restore permission:
services.bitcoind.rpc.users.btcpayserver.rpcwhitelist = [ "scantxoutset" ];
If you do not use wallet UTXO scanning, leave it disabled and acknowledge the change by updating the config version below.
charge-lnd macaroon permissions restricted
The charge-lnd macaroon now grants read access and write access only to
UpdateChannelPolicy and UpdateChanStatus. The previous broad offchain:write
grant also allowed sending payments and abandoning channels. LND regenerates
/run/lnd/charge-lnd.macaroon with the restricted permissions when it restarts
during deployment. Regeneration does not revoke old copies: they remain valid
with their original permissions. Do not reuse them. If another application used
this macaroon, give it a separate macaroon with the permissions it needs via
services.lnd.macaroons.
lnconnect-clnrest server certificate corrected
lnconnect-clnrest now includes clnrest’s server certificate (server.pem) in
direct connection URLs. Previously it included the mutual-TLS client certificate
(client.pem), which did not match the certificate presented by clnrest. Regenerate
direct connection URLs and reconnect clients. Tor and WireGuard URLs use --nocert
and are unaffected.
c-lightning-REST replaced by clnrest
c-lightning-REST support has been removed because it is no longer maintained.
Remove services.clightning-rest (or the legacy services.rtl.cl-rest) and any
associated onion service or network namespace settings from your configuration.
Use the clnrest plugin for Core Lightning’s REST API:
services.clightning = {
enable = true;
plugins.clnrest = {
enable = true;
# Optional: connection helper and access via Tor
lnconnect = {
enable = true;
onion = true;
};
};
};
clnrest uses runes for authentication instead of c-lightning-REST macaroons and
listens on port 3010 by default. Reconnect clients using lnconnect-clnrest
instead of lndconnect-clightning, or lnconnect-clnrest-wg instead of
lndconnect-clightning-wg with the WireGuard preset. See
connecting via Tor and
connecting via WireGuard.
RTL already uses clnrest and enables it automatically for its Core Lightning node.
Custom API clients must switch to POST /v1/<rpc-method> with JSON parameters and
handle native Core Lightning RPC responses. The convenience endpoints getBalance,
getFees, and channel/localRemoteBal are gone; calculate their summaries from
listfunds, getinfo, and listpeerchannels. The old /v1/ws protocol is also
replaced by clnrest’s notification streaming. See the
upstream migration guide.
clnrest runs within clightning.service and shares Core Lightning’s network
namespace and sandbox. There is no separate REST service or API-specific Tor
enforcement setting. services.clightning.tor.enforce applies to both; the WireGuard
preset disables enforcement for that service to allow connections over the tunnel.
Swagger documentation is served on the REST API port at /, instead of a separate
docPort. If you used extraConfig.DOMAIN for a custom certificate hostname,
supply suitable certificates with the clnrest-certs option through
services.clightning.extraConfig. When using a custom certificate directory, pass
--tlscertpath=/path/to/certs/server.pem to lnconnect-clnrest for direct TLS
connection URLs. See the
clnrest configuration reference.
The former c-lightning-REST data directory (default: /var/lib/clightning-rest)
and onion service keys (/var/lib/tor/onion/clightning-rest, if configured) are
retained. The backups service no longer includes the former data directory.
To keep backing it up, add its path to services.backups.extraFiles:
services.backups.extraFiles = [ "/var/lib/clightning-rest" ];
By default, clnrest’s certificates and rune are stored in Core Lightning’s network directory and remain covered by the Core Lightning backup.
After migrating your configuration, set nix-bitcoin.configVersion = "0.1.1";.