Repository navigation
docs: rework the services page - #201
Merged
Merged
Conversation
nodeinfo needs nix-bitcoin.nodeinfo.enable, which the secure-node preset sets, and reads the onion addresses of the operator user. When onion-addresses.service has failed, nodeinfo prints only an error and no addresses. Reading the journal doesn't need root: the operator is in group systemd-journal. Assisted-by: Claude Code (Claude Opus 5.5)
Take the netns address from nodeinfo instead of hard-coding it, and say that the onion service comes from the Tor presets. The tunnel needs no root login, so use the operator user. Assisted-by: Claude Code (Claude Opus 5.5)
lndconnect --host and the external IP detection only matter without the onion service, so move them to "Connecting without Tor or WireGuard". Without --host, the helpers query public IP lookup services over clearnet. lnconnect-clnrest also supports --url. Say that tor.enforce = false applies to the whole service and that the snippets need the config module argument. Drop the outdated minimum ZEUS version and the ZEUS UI steps we can't verify. Assisted-by: Claude Code (Claude Opus 5.5)
The flake import used an undefined nix-bitcoin variable. Show the imports for the flake, Colmena and krops examples instead. List the preset's requirements, which evaluation asserts: the NixOS firewall with the iptables backend, and no netns-isolation. Say that it binds the REST servers to 0.0.0.0 behind firewall rules and disables tor.enforce for lnd and clightning, and that nix-bitcoin-wg-connect without a host queries public IP lookup services. Drop the TLS alternative, which lndconnect doesn't need (it embeds the certificate), the outdated minimum ZEUS version and UI steps we can't verify. Assisted-by: Claude Code (Claude Opus 5.5)
Say that the onion service comes from the Tor presets and that Fulcrum works the same way. Replace the dead Orbot and Tor links, drop the duplicate -1 flag (short for --oneserver) and the outdated minimum Electrum version. Assisted-by: Claude Code (Claude Opus 5.5)
The ssh command connected to the onion address without Tor, which fails. Use an ssh_config alias with a SOCKS ProxyCommand instead of a local port forward: nixos-rebuild, Colmena and krops all connect through ssh, so they use it without per-tool port settings. Drop the key generation steps, which the installation guide already covers. Assisted-by: Claude Code (Claude Opus 5.5)
Fix the dead HWI link and use the current trezorctl command names (the old ones still work as aliases). Say what the option installs, that the operator gets device access, and that it requires the bitcoind wallet. promptpin/sendpin is only needed for the Trezor One, which enters its PIN on the host. Link Trezor's guide for the bootloader mode instead of describing it per model, and correct the claim that a firmware update always wipes the device. Assisted-by: Claude Code (Claude Opus 5.5)
clightning is bound to the replication mounts, so it doesn't start until the target accepts the generated SSH key; restart it afterwards. Say how to set a non-default SSH port, that the destination directory is relative to the user's home, and that the SSH key is only generated with generateSecrets. With encrypt, the copy is useless without clightning-replication-password, which services.backups only covers with generateSecrets. Drop the serverfault link: the snippet below it is self-contained. Assisted-by: Claude Code (Claude Opus 5.5)
Disabling trustedcoin's Tor proxy also disables tor.enforce for the whole clightning service (modules/clightning-plugins/trustedcoin.nix). Also indent the plugin snippet like the others. Assisted-by: Claude Code (Claude Opus 5.5)
Add a page title and group the sections into node administration, wallets and apps, and Core Lightning, with the replication under Core Lightning. Only headings move; the text is unchanged. The heading texts and explicit anchors stay, because README.md, docs/introduction.md, docs/upgrading.md and modules/versioning.nix link to them. Assisted-by: Claude Code (Claude Opus 5.5)
The page is now checked against the modules. The ZEUS, Electrum and Trezor app steps are kept minimal or link the vendors' guides. Assisted-by: Claude Code (Claude Opus 5.5)
seberm
enabled auto-merge
November 2, 2026 23:10
unbeholdendev
added a commit
to unbeholdendev/infra
that referenced
this pull request
Nov 10, 2026
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [bitcoinix/bitcoinix](https://github.com/bitcoinix/bitcoinix) | patch | `v0.1.4` → `v0.1.5` | --- ### Release Notes <details> <summary>bitcoinix/bitcoinix</summary> ### [`v0.1.5`](https://github.com/bitcoinix/bitcoinix/releases/tag/v0.1.5): bitcoinix 0.1.5 [Compare Source](bitcoinix/bitcoinix@v0.1.4...v0.1.5) **Security release with breaking changes.** Updates BTCPay Server to 2.4.7 and Core Lightning to 26.06.10. All users should upgrade. If you run BTCPay Server with `services.backups`, start a backup right after upgrading. Evaluation fails with a message for each breaking change that affects your config; act on it, then set `nix-bitcoin.configVersion = "0.1.5";`. #### Security - **BTCPay Server [2.4.7](https://github.com/btcpayserver/btcpayserver/releases/tag/v2.4.7)** fixes 85 security findings (1 critical, 13 high). Upstream highly recommends it, especially for servers shared by multiple merchants. It was left out of 0.1.4 ([#​203](bitcoinix/bitcoinix#203)). - **Core Lightning [26.06.10](https://github.com/ElementsProject/lightning/releases/tag/v26.06.10)** fixes vulnerabilities in dual funding, splicing, onchaind, gossip, connectd, runes and commando, among others. Upstream recommends reviewing your runes: bind runes used over commando to the app's node ID and blacklist any you can't account for ([#​226](bitcoinix/bitcoinix#226)). - **Backups now include the NBXplorer database,** which holds the BTCPay hot-wallet keys. Backups made before this release lack them, so run `systemctl start duplicity` after upgrading, or make sure you have each hot wallet's recovery phrase ([#​223](bitcoinix/bitcoinix#223)). - **Not included: database dump checks ([#​225](bitcoinix/bitcoinix#225 duplicity still succeeds when a database dump fails, and with `services.postgresqlBackup.compression` set to `"zstd"` or `"none"`, backups leave out the BTCPay and NBXplorer databases. Until the next release, keep the default `"gzip"` and check `journalctl -u postgresqlBackup-btcpaydb -u postgresqlBackup-nbxplorer` after a backup. - **The mempool RPC password no longer ends up in the Nix store** when set through `services.mempool.settings.CORE_RPC.PASSWORD` ([#​216](bitcoinix/bitcoinix#216)). - **Multipath TCP:** lnd now also runs with `GODEBUG=multipathtcp=0`, and `hardened-extended` sets `net.mptcp.enabled = 0` ([#​187](bitcoinix/bitcoinix#187)). That sysctl, like the one the 0.1.4 notes advised, covers only the host namespace: services that netns-isolation runs in their own namespace can still open MPTCP listeners (fix not included, [#​206](bitcoinix/bitcoinix#206)). The fix for CVE-2026-98432 is kernel 6.18.56 or later; check with `uname -r`. - **Harder to fingerprint:** mempool no longer shows stack traces with store paths, store-derived ETags, the hostname or the kernel version, and new self-signed certs only carry `CN=localhost`. The SSH onion shares its host keys with clearnet SSH, so publishing both links them: keep SSH off clearnet or use Tor client authorization for the onion ([#​229](bitcoinix/bitcoinix#229)). - `clightning-replication` warns when SSH host key checking is disabled ([#​222](bitcoinix/bitcoinix#222)). - Core Lightning, clboss and Fulcrum still link brotli 1.2.0 from nixpkgs-unstable. #### Breaking changes - **mempool:** `services.mempool.settings.CORE_RPC.PASSWORD` now fails evaluation. Put the password in `<secretsDir>/bitcoin-rpcpassword-public`, and change it if untrusted users or services run on the node, since the old value stays in the store until garbage collection ([#​216](bitcoinix/bitcoinix#216)). - **currencyrate:** the Python plugin is replaced by Core Lightning's Rust `cln-currencyrate`. Use `listcurrencyrates` instead of `currencyrates`; `add-source`/`disable-source` are now `currencyrate-add-source`/`currencyrate-disable-source` ([#​202](bitcoinix/bitcoinix#202)). - **rebalance:** now routes with askrene. Drop `getroute_method` from `rebalance` calls and `rebalance-getroute`, `rebalance-maxhops`, `rebalance-msatfactor` from your config; `rebalancereport` loses the matching fields ([#​202](bitcoinix/bitcoinix#202), [#​207](bitcoinix/bitcoinix#207)). - **clnrest:** the package moved from `nix-bitcoin.pkgs.clnrest` to `nix-bitcoin.pkgs.clightning-plugins.clnrest` ([#​202](bitcoinix/bitcoinix#202)). - **Core Lightning 26.06.10, for scripts:** `bkpr-dumpincomecsv` only accepts a plain `.csv` filename and writes it to the network directory. Opens from peers with `dust_limit_satoshis` above 5000 sat are refused. See the [operator notes](https://github.com/ElementsProject/lightning/releases/tag/v26.06.10). - **BTCPay Server 2.4.7, for integrators:** the legacy `/invoices/create` routes are removed (use `/stores/{storeId}/invoices/create`), and reading single invoices through the BitPay API requires authentication. See [Upgrading to config version 0.1.5](https://docs.bitcoinix.net/upgrading.html#upgrading-to-config-version-015). #### Updates | Package | 0.1.4 | 0.1.5 | | ------------------- | --------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | | BTCPay Server | 2.4.6 | [2.4.7](https://github.com/btcpayserver/btcpayserver/releases/tag/v2.4.7) | | Core Lightning | 26.06.9 | [26.06.10](https://github.com/ElementsProject/lightning/releases/tag/v26.06.10) | | currencyrate plugin | Python ([`c0ba9dc`](bitcoinix/bitcoinix@c0ba9dc)) | [cln-currencyrate 0.1.0](https://github.com/ElementsProject/lightning/tree/v26.06.10/plugins/currencyrate-plugin) | | lightningd/plugins | [`c0ba9dc`](bitcoinix/bitcoinix@c0ba9dc) | [f0d33fd](https://github.com/lightningd/plugins/tree/f0d33fd) | Also: the docs list the release and package versions ([#​205](bitcoinix/bitcoinix#205)); the services page is reworked ([#​201](bitcoinix/bitcoinix#201)). Contributors: [@​ostermayer](https://github.com/ostermayer), [@​prusnak](https://github.com/prusnak), [@​seberm](https://github.com/seberm), [@​viberaven](https://github.com/viberaven). Full changes: <bitcoinix/bitcoinix@v0.1.4...v0.1.5> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMjIuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIyMi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: agent <[email protected]> Reviewed-on: https://git.home.unbeholden.dev/unbeholden/infra/pulls/97
prusnak
added a commit
that referenced
this pull request
Nov 18, 2026
#267) Fixes #67. Without a host, `nix-bitcoin-wg-connect` ran `lndconnect` to find the node's external IP. `lndconnect` does this through `go-external-ip`, which queries third-party IP lookup services over clearnet. That revealed the node's public IP to them, also on a node that otherwise uses only Tor. #201 documented the lookup, but the command still did it. This makes the host required. Without it, the command prints a usage message and exits with status 1: ``` Usage: nix-bitcoin-wg-connect [--text] <host> <host> is the address where your WireGuard client reaches this node: its public IP or hostname, or its LAN IP for a client in your local network. 'ip address' lists the node's own addresses. Behind NAT, your router shows the public IP. ``` The rest of the command works as before. The preset no longer references the `lndconnect` package. A call that used to work now fails, so this adds a config version 0.2.0 notice for configs that import the preset (`modules/versioning/0.2.0/wireguard-connect-host.nix`). `docs/upgrading.md` and `docs/release-notes.md` get 0.2.0 entries. The note from #201 in `docs/services.md` now says that the address is required and how to find it. The dev topic `dev/topics/lndconnect-and-wireguard.sh` passes a host. ## Testing - `wireguard-lndconnect` passes. A new subtest runs the command without a host and checks that it fails with the usage message and prints no config. - `checks.x86_64-linux.module-config` passes. The new `testVersioningWireguardConnectHost` checks that the notice fires for an older config with the preset and not without the preset, and that a config at 0.2.0 doesn't get it once 0.2.0 is released. Without the notice file, it fails. - `checks.x86_64-linux.test-runner` and `nix eval .#ciTestInfo` pass. - `shellcheck` passes on `dev/topics/lndconnect-and-wireguard.sh`. - The CVE scan node (`test/ci/scan-node.nix`) got `lndconnect` through the preset before. It now enables `services.lnd.lndconnect.enable`, so the scan still covers `lndconnect`. It evaluates, with `lndconnect` in its closure. - After the rebase onto master c3d955c (#283), `module-config`, `test-runner`, `ci-workflows`, `shellcheck` and `wireguard-lndconnect` pass on the KVM host. `acknowledged` replaces `current`, because master now rejects config version 0.2.0 before the release. It checks that a config at 0.2.0 doesn't get the notice once 0.2.0 is released. On master, the notice is a warning until 0.2.0 is released, and the tests pass with `version.nix` at 0.1.6 and at 0.2.0. ## Models Claude Opus 5.5 wrote the change. Codex GPT-5.6 Sol, Codex GPT-6 Astra (two passes), Kimi K3.1 Pro (two passes), DeepSeek V4.1 Flash 1017 and GLM 5.3 reviewed it. Claude Opus 5.5 rebased it onto #224 and #283.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #148.
Replaces #186, which is no longer accessible. Same commits by the same author, rebased onto current master with no changes. Both review points from @ostermayer on #186 are addressed:
nodeinfono longer relies on the preset'sjq(fixed in the module), so the page only says to installjqfor thenodeinfo | jqexample; andservices.bitcoind.disablewallet"must stay unset orfalse".Services page, one commit per fix:
nix-bitcoin.nodeinfo.enable(set by secure-node), runs as operator; after an onion-addresses failure it prints only the error, not the remaining addresses.--hostand external-IP detection only apply withoutonion; without--hostthe helpers query public IP lookup services over clearnet.tor.enforce = falselifts the restriction for the whole service. Drop the outdated ZEUS version and unverifiable UI steps.nix-bitcoinvariable; show flake/Colmena/krops imports. List the asserted requirements (iptables firewall, no netns-isolation), and that the preset binds REST to 0.0.0.0 behind firewall rules and disablestor.enforcefor lnd/clightning.ssh root@<onion>without Tor fails. Use an ssh_config alias with a SOCKSProxyCommand, which nixos-rebuild, Colmena and krops all pick up.disablewalletassertion; link Trezor's guide for bootloader mode.clightning-replication-passwordwithencrypt(services.backupsonly covers secrets withgenerateSecrets).tor.proxy = falsedisablestor.enforcefor all of clightning.versioning.nixare unchanged.Tested: every changed snippet evaluated to a system
drvPathwith the secure-node preset (WireGuard preset with lndconnect and with clnrest, both LAN snippets, SSHFS/local replication incl. non-default port, Trezor, plugins); the sshd chroot target snippet in a plain NixOS system; WireGuard + nftables confirmed to fail evaluation. trezorctl aliases checked in the trezor 0.20.2 source; ssh alias checked withssh -G. mdBook builds and all linked anchors resolve. Not tested live (no VM): ZEUS, WireGuard, Trezor, SSHFS replication.