Skip to content

docs: fix the services page - #186

Merged
11 commits merged into
bitcoinix:masterfrom
sebsgent:docs-services
Nov 2, 2026
Merged

11 commits merged into
bitcoinix:masterfrom
sebsgent:docs-services

Conversation

@sebsgent

Copy link
Copy Markdown
Contributor

Part of #148.

Services page, one commit per fix:

  • nodeinfo: needs 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.
  • RTL: take the netns address from nodeinfo instead of hard-coding it; the onion service comes from the Tor presets.
  • lndconnect: --host and external-IP detection only apply without onion; without --host the helpers query public IP lookup services over clearnet. tor.enforce = false lifts the restriction for the whole service. Drop the outdated ZEUS version and unverifiable UI steps.
  • WireGuard preset: the flake import used an undefined nix-bitcoin variable; 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 disables tor.enforce for lnd/clightning.
  • electrs: Fulcrum works the same way; dead Orbot/Tor links replaced.
  • SSH onion service: ssh root@<onion> without Tor fails. Use an ssh_config alias with a SOCKS ProxyCommand, which nixos-rebuild, Colmena and krops all pick up.
  • Trezor: dead HWI link, current trezorctl command names, operator group access, disablewallet assertion; link Trezor's guide for bootloader mode.
  • Replication: clightning doesn't start until the target accepts the generated key; non-default SSH port; back up clightning-replication-password with encrypt (services.backups only covers secrets with generateSecrets).
  • trustedcoin: tor.proxy = false disables tor.enforce for all of clightning.
  • Group the sections (node administration, wallets and apps, Core Lightning). Headings and anchors linked from README, introduction, upgrading and versioning.nix are unchanged.
  • Drop the inherited banner (separate commit, easy to drop).

Not changed: the BACKUP.md link in the clightning-replication.nix option description is dead (now https://docs.corelightning.org/docs/backup).

Tested: every changed snippet evaluated to a system drvPath with 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 with ssh -G. mdBook builds and all linked anchors resolve. Not tested live (no VM): ZEUS, WireGuard, Trezor, SSHFS replication.

@github-actions github-actions Bot added the area: docs docs/, README, examples/, SECURITY.md, book.toml, assets label Oct 29, 2026
@seberm seberm mentioned this pull request Oct 29, 2026
6 of 7 tasks
@seberm
seberm marked this pull request as ready for review October 29, 2026 23:05

@ostermayer ostermayer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is a big cleanup and the module claims hold up. I checked the changed sentences against the modules and found two that don't match. Both are small.

Models: Codex (GPT-5.6 Sol, xhigh) did the first pass over the diff, and I verified both points in the modules myself.

Comment thread docs/services.md Resolved
Comment thread docs/services.md Resolved
@seberm seberm linked an issue Nov 1, 2026 that may be closed by this pull request
6 of 7 tasks
@seberm

seberm commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

@ostermayer Thanks, both points are addressed. The jq one turned out to be a bug in nodeinfo rather than a docs gap: the script relied on the jq installed by the secure-node.nix preset. #196 fixes that by pinning jq in the module, so the docs here now only say to install jq for the nodeinfo | jq example. The disablewallet wording follows your suggestion.

#196 is a blocker for this PR: we'll merge it first, then this one.

seberm added a commit that referenced this pull request Nov 1, 2026
nodeinfo called a bare jq, which only the secure-node preset installs.
Without the preset, nodeinfo printed an empty nodeid for lnd and
clightning and still exited 0, and the clightning id became
@<onion address>. The test nodes always install jq, so CI didn't catch
it.

Use ${pkgs.jq}/bin/jq, like the other modules. lncli, lightning-cli,
systemctl and bash stay bare, because the system PATH provides them
whenever these lines run.

Needed before #186.
@seberm
seberm requested a review from ostermayer November 1, 2026 22:15
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 seberm closed this pull request by merging all changes into bitcoinix:master in 577725a Nov 2, 2026
@seberm seberm added this to the v0.1.5 milestone Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs docs/, README, examples/, SECURITY.md, book.toml, assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update docs

3 participants