2026-02-01 21:24:00 +02:00
Nanuqsaurus NixOS installer
===========================
2026-02-01 19:43:03 +02:00
2026-02-01 21:24:00 +02:00
Run the non-interactive installer:
2026-02-01 19:43:03 +02:00
2026-02-01 21:24:00 +02:00
sudo /etc/nixos/scripts/install-btrfs.sh
2026-02-01 19:43:03 +02:00
2026-02-02 14:04:56 +02:00
Optionally set DISK and TARGET_HOST (defaults: DISK=/dev/vda, TARGET_HOST=nanuqsaurus)
2026-02-01 19:43:03 +02:00
2026-02-02 14:04:56 +02:00
sudo DISK=/dev/vda TARGET_HOST=nanuqsaurus /etc/nixos/scripts/install-btrfs.sh
2026-02-01 21:24:00 +02:00
2026-02-01 22:14:04 +02:00
The script wipes the whole disk, creates Btrfs subvolumes (root, home, nix), copies the flake, generates hardware config, and installs. It writes host files under `/etc/nixos/hosts/local-<hostname>.nix` and `local-<hostname>-hardware.nix` (kept local to the machine).
2026-02-01 21:24:00 +02:00
If you need a more custom setup please run the partitioning manually, mount the target to /mnt and then install the system:
2026-02-02 14:04:56 +02:00
nixos-install --root /mnt --flake "/mnt/etc/nixos#local-${TARGET_HOST}" --no-root-passwd
2026-02-01 21:24:00 +02:00
2026-02-01 22:08:28 +02:00
After install finishes, reboot into the new system.