nix-bitcoin configuration for nixbitcoin.org
Nix >= 2.9, with flakes enabled.
Run nix develop
to enter a dev shell (defined in lib/dev-env.nix
)
which provides deployment and development commands (like running the node in a container or VM).
You can also directly run a command like so:
nix develop -c <cmd>
nix develop -c help
nix develop -c deploy
./run-test
runs the test. Requires root permissions because the test starts a container.
Branch deployed
always contains the configuration that is currently deployed.
To increase deployment speed, add a ControlMaster
to your nixbitcoin.org config in ~/.ssh/config
:
Host nixbitcoin.org
# ...
ControlMaster auto
ControlPath /tmp/ssh-connection-%r@%k-%p
ControlPersist 5m