Build Live ISO This can be built from any system with the nix command installed. Nix can be installed either using the [[https://nixos.org/download/][official documentation]] or the [[https://determinate.systems/posts/determinate-nix-installer/][3rd party nix-installer]].
nix build .#nixosConfigurations.live.config.system.build.isoImage
ISO will be in the ./result/iso folder.
Setup Boot from the ISO created above. ** Disk partitioning Create following partitions and names | Partion name | fsType | size | opt | | BOOT | vfat | 512MiB | | | root | ext4 | | | | home | ext4 | | x | |--------------+--------+--------+-----| Wipe disk and create partition table
wipefs -a /dev/nvme0n1 parted /dev/nvme0n1 -- mklabel gpt parted /dev/nvme0n1 -- mkpart ESP fat32 1MB 512MB parted /dev/nvme0n1 -- set 1 esp on parted /dev/nvme0n1 -- mkpart root ext4 512MB 100%
Format partitions
mkfs.fat -F 32 -n BOOT /dev/nvme0n1p1 mkfs.ext4 -L root /dev/nvme0n1p2
** Mount partitions and Create the following directories
mount /dev/disk/by-label/root /mnt mkdir -p /mnt/boot mount /dev/disk/by-label/BOOT /mnt/boot
** System ssh cert
User ssh cert Not sure if this is needed Generate hardware-config nixos-generate-config --root /mnt ** Prep git repo Add system