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

Using services

How to reach and run the services on your node. The service guides assume the secure-node.nix preset, which adds Tor onion services, nodeinfo and the operator user, unless they say otherwise.

Node administration

  • Nodeinfo: service addresses, versions and node IDs.
  • SSH: connect and deploy through the node’s onion service.
  • Backups: node data, Bitcoin wallets and Lightning recovery files.

Managing services

NixOS uses the systemd service manager.

Usage:

# Show service status
systemctl status bitcoind

# Show the last 100 log messages
journalctl -u bitcoind -n 100
# Show all log messages since the last system boot
journalctl -b -u bitcoind

# These commands require root permissions
systemctl stop bitcoind
systemctl start bitcoind
systemctl restart bitcoind

# Show the service definition
systemctl cat bitcoind
# Show all service parameters
systemctl show bitcoind

Wallets and apps

  • electrs and Fulcrum: connect Electrum wallets through Tor.
  • RTL: access the web interface and manage backend credentials.
  • BTCPay Server: sign in and choose a Lightning backend.
  • Unbeholden LNURL: receive payments with Lightning Addresses.
  • Unbeholden Wallet: connect the watch-only browser wallet.
  • Cashu mint: issue ecash backed by Lightning or optional on-chain payments.
  • Orchard: manage the Cashu mint in a web dashboard.
  • ZEUS: connect to LND or Core Lightning over Tor or WireGuard.
  • Trezor: initialize and use a hardware wallet with HWI.

Lightning nodes

  • LND: create, manage and revoke custom macaroons.
  • Core Lightning: configure plugins and database replication.