Configure btc-node NixOS container with Bitcoin Core #5

Merged
AlexCaswen merged 2 commits from 2-configure-btc-node into main 2026-05-04 18:54:46 +00:00
AlexCaswen commented 2026-05-04 18:50:53 +00:00 (Migrated from gitlab.com)

Changes

New: containers/btc-node/configuration.nix

Bitcoin Core full archival node configuration:

  • services.bitcoind enabled with txindex=1, dbcache=4096, no pruning
  • Firewall allows TCP 8333 (P2P)
  • Hostname set to btc-node

Updated: .gitlab-ci.yml

  • Added deploy stage
  • New .tailscale base template (shared Tailscale + cert setup)
  • New .incus template (downloads incus CLI, adds remote)
  • .tofu now extends .tailscale via !reference
  • deploy-btc-node job: pushes config and runs nixos-rebuild switch
    • Only triggers on changes to containers/btc-node/**
    • Manual trigger on main branch

Closes #2

## Changes ### New: `containers/btc-node/configuration.nix` Bitcoin Core full archival node configuration: - `services.bitcoind` enabled with `txindex=1`, `dbcache=4096`, no pruning - Firewall allows TCP 8333 (P2P) - Hostname set to `btc-node` ### Updated: `.gitlab-ci.yml` - Added `deploy` stage - New `.tailscale` base template (shared Tailscale + cert setup) - New `.incus` template (downloads incus CLI, adds remote) - `.tofu` now extends `.tailscale` via `!reference` - `deploy-btc-node` job: pushes config and runs `nixos-rebuild switch` - Only triggers on changes to `containers/btc-node/**` - Manual trigger on main branch Closes #2
AlexCaswen (Migrated from gitlab.com) approved these changes 2026-05-04 18:50:53 +00:00
AlexCaswen commented 2026-05-04 18:54:21 +00:00 (Migrated from gitlab.com)

requested review from @AlexCaswen

requested review from @AlexCaswen
AlexCaswen commented 2026-05-04 18:54:36 +00:00 (Migrated from gitlab.com)

approved this merge request

approved this merge request
AlexCaswen commented 2026-05-04 18:54:46 +00:00 (Migrated from gitlab.com)

mentioned in commit ea7489811b

mentioned in commit ea7489811bc4c669a304f374ea6df5bc951413c5
AlexCaswen (Migrated from gitlab.com) merged commit ea7489811b into main 2026-05-04 18:54:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midwitmoneymgmt/m3-infra!5
No description provided.