2026-02-01 21:24:00 +02:00
|
|
|
|
Nanuqsaurus NixOS installer
|
|
|
|
|
|
===========================
|
2026-02-01 19:43:03 +02:00
|
|
|
|
|
2026-02-04 15:57:45 +02:00
|
|
|
|
Direct-from-URL install (wipes the whole disk)
|
|
|
|
|
|
---------------------------------------------
|
2026-02-01 19:43:03 +02:00
|
|
|
|
|
2026-02-04 15:57:45 +02:00
|
|
|
|
Pick a stable disk path (prefer /dev/disk/by-id/*) and run:
|
|
|
|
|
|
|
|
|
|
|
|
sudo nix --experimental-features "nix-command flakes" \
|
|
|
|
|
|
run github:nix-community/disko/latest#disko-install -- \
|
|
|
|
|
|
--mode format \
|
2026-02-04 17:25:54 +02:00
|
|
|
|
--flake "git+https://codeberg.org/<owner>/<repo>.git#nanuqsaurus-btrfs" \
|
2026-02-04 15:57:45 +02:00
|
|
|
|
--disk main /dev/disk/by-id/<your-disk> \
|
|
|
|
|
|
--mount-point /mnt
|
2026-02-01 19:43:03 +02:00
|
|
|
|
|
2026-02-04 20:53:05 +02:00
|
|
|
|
Adopt an existing NixOS install (no repartition)
|
|
|
|
|
|
-----------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
Create a small local wrapper flake that imports this repo as a module and keeps
|
|
|
|
|
|
your machine’s `hardware-configuration.nix` for mounts/boot.
|
|
|
|
|
|
|
|
|
|
|
|
See: docs/adopt.md (on the custom ISO: `/etc/nixos/docs/adopt.md`)
|
|
|
|
|
|
|
2026-02-01 19:43:03 +02:00
|
|
|
|
|
2026-02-04 15:57:45 +02:00
|
|
|
|
ISO shortcut
|
|
|
|
|
|
------------
|
2026-02-01 19:43:03 +02:00
|
|
|
|
|
2026-02-04 15:57:45 +02:00
|
|
|
|
If you are using the custom ISO from this repo, it embeds the flake at /etc/nixos.
|
2026-02-04 20:53:05 +02:00
|
|
|
|
You can run the wrapper script (defaults: DISK=/dev/vda, TARGET_HOST=nanuqsaurus-btrfs):
|
2026-02-04 15:57:45 +02:00
|
|
|
|
|
|
|
|
|
|
sudo /etc/nixos/scripts/install-btrfs.sh
|
2026-02-01 21:24:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
2026-02-04 15:57:45 +02:00
|
|
|
|
Optionally set DISK, TARGET_HOST, and FLAKE:
|
2026-02-01 21:24:00 +02:00
|
|
|
|
|
2026-02-04 20:53:05 +02:00
|
|
|
|
sudo DISK=/dev/disk/by-id/<your-disk> TARGET_HOST=nanuqsaurus-btrfs \
|
|
|
|
|
|
FLAKE="git+https://codeberg.org/<owner>/<repo>.git" \
|
2026-02-04 15:57:45 +02:00
|
|
|
|
/etc/nixos/scripts/install-btrfs.sh
|
2026-02-01 21:24:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
2026-02-04 15:57:45 +02:00
|
|
|
|
This uses disko to create a GPT disk with a 550M EFI partition and a Btrfs partition
|
|
|
|
|
|
containing subvolumes root, home, and nix, mounted with compress=zstd.
|
2026-02-01 21:24:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
2026-02-01 22:08:28 +02:00
|
|
|
|
After install finishes, reboot into the new system.
|