Keep local host/hardware files, default hostname nanuqsaurus

This commit is contained in:
randogoth 2026-02-01 22:14:04 +02:00
parent 91a4b180a4
commit 36fb3bd193
4 changed files with 8 additions and 4 deletions

View file

@ -11,7 +11,7 @@ Optionally set DISK and HOSTNAME (defaults: DISK=/dev/vda, HOSTNAME=nanuqsaurus)
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.
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).
If you need a more custom setup please run the partitioning manually, mount the target to /mnt and then install the system: