Repository navigation
docs: fix the services page - #186
Merged
11 commits merged intoNov 2, 2026
Merged
11 commits merged into
11 commits merged into
Conversation
sebsgent
force-pushed
the
docs-services
branch
from
October 29, 2026 22:53
45c9cc0 to
7b49282
Compare
seberm
marked this pull request as ready for review
October 29, 2026 23:05
ostermayer
reviewed
Oct 30, 2026
ostermayer
left a comment
Collaborator
There was a problem hiding this comment.
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.
sebsgent
force-pushed
the
docs-services
branch
from
November 1, 2026 15:38
7b49282 to
0ec943f
Compare
Closed
6 of 7 tasks
sebsgent
force-pushed
the
docs-services
branch
from
November 1, 2026 19:40
0ec943f to
1126f74
Compare
Contributor
|
@ostermayer Thanks, both points are addressed. The #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.
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)
sebsgent
force-pushed
the
docs-services
branch
from
November 2, 2026 22:06
e9fa835 to
4400611
Compare
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.
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.Not changed: the
BACKUP.mdlink in theclightning-replication.nixoption description is dead (now https://docs.corelightning.org/docs/backup).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.