-
Boot the NixOS installer.
-
Clone this repo:
git clone https://github.com/hojmark/nix.git /tmp/nix
-
Identify the target disk (whole disk, not a partition).
/dev/disk/by-id/...//dev/vdais all fine:lsblk -d -o NAME,MODEL,SIZE,TRAN,SERIAL ls -l /dev/disk/by-id/
-
Run bootstrap with the host (
abcort14) and disk path.sudo /tmp/nix/bootstrap.sh abc /dev/disk/by-id/REPLACE_WITH_TARGET_DISK
Optionally, add
--bios, e.g.sudo /tmp/nix/nixos/bootstrap.sh abc /dev/vda --bootfor legacy BIOS support. -
Set the user account password when prompted.
-
Unmount NixOS installer and reboot.
Run the post-install script as your normal user:
/etc/nixos/post-install.shIt clones this repository to ~/git/nix and links configuration.nix into /etc/nixos.