This all works (theoretically), it is preferred to install through the gnome graphical installer https://nixos.org/manual/nixos/stable/#sec-installation
- https://nixos.org/download/ download the minimal ISO and boot into it
sudo -ilsblkto view drivesfdisk /dev/sdaif sda is the drive you want to install ong- new partition
nwith size of+550M - new partition
nwith all the remaining disk size wmkfs.fat -F32 /dev/sda1mkfs.ext4 /dev/sda2mount /dev/sda2 /mntmkdir -p /dev/sda1 /mnt/bootcd /mntnixos-generate-config --root /mntvim /mnt/etc/nixos/configuration.nixand if you want to use grub as the default bootloader, setboot.loader.grub.deviceto/dev/sdaandboot.loader.grub.efiSupporttotrue.nixos-installreboot- After reboot,
ln -s /etc/nixos /home/yoshixi/nixos