Default install host to installer

This commit is contained in:
randogoth 2026-02-01 20:52:03 +02:00
parent 9dbb211285
commit 9e6d7a5a88
2 changed files with 4 additions and 4 deletions

View file

@ -4,9 +4,9 @@ NixOS installer (flake + Lix)
1) Build is prewired with Lix; the installer ISO includes the repo at /etc/nixos. 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): 2) Run the non-interactive Btrfs installer (set envs as needed):
sudo DISK=/dev/vda HOSTNAME=nixos /etc/nixos/scripts/install-btrfs.sh sudo DISK=/dev/vda HOSTNAME=installer /etc/nixos/scripts/install-btrfs.sh
Defaults: DISK=/dev/vda, HOSTNAME=nixos 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. 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. 3) After install finishes, reboot into the new system.

View file

@ -2,10 +2,10 @@
set -euo pipefail set -euo pipefail
# Non-interactive Btrfs installer using the flake in this repo. # Non-interactive Btrfs installer using the flake in this repo.
# Defaults: DISK=/dev/vda HOSTNAME=nixos # Defaults: DISK=/dev/vda HOSTNAME=installer
DISK=${DISK:-/dev/vda} DISK=${DISK:-/dev/vda}
HOSTNAME=${HOSTNAME:-nixos} HOSTNAME=${HOSTNAME:-installer}
SCRIPT_DIR=$(cd -- "$(dirname "${BASH_SOURCE[0]}")" && pwd) SCRIPT_DIR=$(cd -- "$(dirname "${BASH_SOURCE[0]}")" && pwd)
REPO_ROOT=$(cd -- "${SCRIPT_DIR}/.." && pwd) REPO_ROOT=$(cd -- "${SCRIPT_DIR}/.." && pwd)