customizations

This commit is contained in:
randogoth 2026-02-01 21:24:00 +02:00
parent 26139b62dd
commit 6b479a0c55
3 changed files with 22 additions and 14 deletions

View file

@ -1,16 +1,22 @@
NixOS installer (flake + Lix)
=============================
Nanuqsaurus NixOS installer
===========================
1) Build is prewired with Lix; the installer ISO includes the repo at /etc/nixos.
2) Run the non-interactive Btrfs installer (set envs as needed):
Run the non-interactive installer:
sudo DISK=/dev/vda HOSTNAME=installer /etc/nixos/scripts/install-btrfs.sh
sudo /etc/nixos/scripts/install-btrfs.sh
Defaults: DISK=/dev/vda, HOSTNAME=installer
The script wipes the disk, creates Btrfs subvolumes (root, home, nix), copies the flake, generates hardware config, and installs with the chosen host name.
3) After install finishes, reboot into the new system.
Optionally set DISK and HOSTNAME
Notes
- Filesystem is Btrfs with subvolumes: root, home, nix.
- The flake lives under /etc/nixos on the target; edit hosts/<hostname>.nix to customize.
sudo DISK=/dev/vda HOSTNAME=nanuqsaurus /etc/nixos/scripts/install-btrfs.sh
The script wipes the whole disk, creates Btrfs subvolumes (root, home, nix), copies the flake, generates hardware config, and installs.
If you need a more custom setup please run the partitioning manually, mount the target to /mnt and then install the system:
nixos-install --root /mnt --flake "/mnt/etc/nixos#${HOSTNAME}" --no-root-passwd
After install finishes, reboot into the new system.