docs: update install.md for NixOS 25.11

- Update NixOS ISO version from 24.05 to 25.11
- Fix version mismatch between download and copy commands
- Update Nix installer to use current official method
- Fix deprecated permitRootLogin -> settings.PermitRootLogin
- Update download URL to nixos.org/download/

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
padreug 2025-12-22 09:52:22 +01:00
parent f1ebb5d2cd
commit 4f4cb34837

View file

@ -17,19 +17,18 @@ However, nix-bitcoin is agnostic to the deployment method and can be used with d
This is borrowed from the [NixOS manual](https://nixos.org/nixos/manual/index.html#ch-installation). Look there for more information.
1. Obtain latest [NixOS](https://nixos.org/nixos/download.html). For example:
1. Obtain latest [NixOS](https://nixos.org/download/). For example:
```
wget https://releases.nixos.org/nixos/24.05/nixos-24.05.3164.63d37ccd2d17/nixos-minimal-24.05.3164.63d37ccd2d17-x86_64-linux.iso
# output: 35dd79596f12b159efc533400ba8f730d819eee2d1014683a658020c2b54ae0c
sha256sum nixos-minimal-24.05.3164.63d37ccd2d17-x86_64-linux.iso
wget https://releases.nixos.org/nixos/25.11/nixos-25.11.1056.d9bc5c7dceb3/nixos-minimal-25.11.1056.d9bc5c7dceb3-x86_64-linux.iso
sha256sum nixos-minimal-25.11.1056.d9bc5c7dceb3-x86_64-linux.iso
```
Alternatively you can build NixOS from source by following the instructions at https://nixos.org/nixos/manual/index.html#sec-building-cd.
2. Write NixOS iso to install media (USB/CD). For example:
```
cp nixos-minimal-23.05.3701.e9b4b56e5a20-x86_64-linux.iso /dev/sdX
cp nixos-minimal-25.11.1056.d9bc5c7dceb3-x86_64-linux.iso /dev/sdX
```
Replace /dev/sdX with the correct device name. You can find this using `sudo fdisk -l`
@ -101,7 +100,7 @@ This is borrowed from the [NixOS manual](https://nixos.org/nixos/manual/index.ht
# Enable the OpenSSH server.
services.openssh = {
enable = true;
permitRootLogin = "yes";
settings.PermitRootLogin = "yes";
};
# The rest of the file are default options and hints.
@ -172,34 +171,20 @@ This is borrowed from the [NixOS manual](https://nixos.org/nixos/manual/index.ht
The following steps are meant to be run on the machine you deploy from, not the machine you deploy to.
You can also build Nix from source by following the instructions at https://nixos.org/nix/manual/#ch-installing-source.
1. Install Dependencies (Debian 10 Buster)
1. Install Dependencies (Debian/Ubuntu)
```
sudo apt-get install curl git gnupg2 dirmngr
sudo apt-get install curl git xz-utils
```
2. Install latest Nix in "multi-user mode" with GPG Verification according to https://nixos.org/nix/download.html
2. Install latest Nix in "multi-user mode" according to https://nixos.org/download/
```
curl -o install-nix-2.3.10 https://releases.nixos.org/nix/nix-2.3.10/install
curl -o install-nix-2.3.10.asc https://releases.nixos.org/nix/nix-2.3.10/install.asc
gpg2 --recv-keys B541D55301270E0BCF15CA5D8170B4726D7198DE
gpg2 --verify ./install-nix-2.3.10.asc
sh ./install-nix-2.3.10 --daemon
curl -L https://nixos.org/nix/install | sh -s -- --daemon
```
Then follow the instructions. Open a new terminal window when you're done.
If you get an error similar to
```
error: cloning builder process: Operation not permitted
error: unable to start build process
/tmp/nix-binary-tarball-unpack.hqawN4uSPr/unpack/nix-2.2.1-x86_64-linux/install: unable to install Nix into your default profile
```
you're likely not installing as multi-user because you forgot to pass the `--daemon` flag to the install script.
3. Optional: Disallow substitutes
You can put `substitute = false` to your `nix.conf` usually found in `/etc/nix/` to build the packages from source.