Releases: fort-nix/nix-bitcoin
nix-bitcoin-0.0.4
nix-bitcoin-0.0.3
nix-bitcoin-0.0.3
nix-bitcoin-0.0.2
Changelog:
nix-bitcoin-0.0.1
This is the first release of nix-bitcoin. It changes the way how nix-bitcoin is supposed to be used for deployments. The old way of keeping up with nix-bitcoin updates - merging upstream changes into the own deployment via git pull - is now deprecated. This means that nix-bitcoin is from now on updated through releases, which can be fetched with the fetch-release command in the nix-shell (see the update doc).
The main difference is that in order to deploy nix-bitcoin you are not supposed to fork and modify this repository anymore.
Instead, you have your own repository with a configuration.nix and import a release of nix-bitcoin. See the examples/
directory and in particular the shell.nix
for how this works now and PR #136 for the actual changes that led to this release.
Migration guide
Note that since nix-bitcoin can be used in various ways. There's no single migration guide that can cover everything. This migration guide covers a installation on NixOS that is deployed with NixOps.
In particular, have a look at examples/shell.nix
, the changes to installation instructions, as well as the new update process (PR #136).
If you have further questions I'm happy to assist in #nix-bitcoin on freenode.
- Update nix-bitcoin to latest commit before the release (
b9fbb144cae9aa8c8d7ebe143ac02c3b1e15651d
) and make sure your version of nix-bitcoin does not change existing files but configuration.nix. - Create a new directory for you deployment
mkdir my-nix-bitcoin
mkdir my-nix-bitcoin/nixops
cp nix-bitcoin/{configuration.nix,hardware-configuration.nix} ./my-nix-bitcoin
cp nix-bitcoin/network/network-nixos.nix ./my-nix-bitcoin/nixops/node-nixos.nix
- Now pull nix-bitcoin, fetch the release, and copy the new nixops node file and shell.nix.
cd nix-bitcoin
git pull
cd examples
nix-shell
fetch-release > ../../my-nix-bitcoin/nix-bitcoin-release.nix
cp nixops/node.nix ../../my-nix-bitcoin/nixops/node.nix
cp shell.nix ../../my-nix-bitcoin/
- Go into your new deployment directory
my-nix-bitcoin
, openconfiguration.nix
and replace./modules/nix-bitcoin.nix
with<nix-bitcoin/modules/nix-bitcoin.nix>
in theimports
array. - Enter the
nix-shell
and modify your deployment to allow nixops to find your new deployment files
nix-shell
nixops modify -d bitcoin-node nixops/node.nix nixops/node-nixos.nix
- Run
nixops deploy
- You can create a new git repo in
my-nix-bitcoin
(addsecrets/
to.gitignore
)