Clone configuration repo:
git clone https://github.com/Uberch/NixOSConf
cd NixOSConfCheck disk names with lsblk and adjust disko.nix if needed.
Run disko to format storage:
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko disko.nixGenerate configuration for hardware:
sudo nixos-generate-config --root /mnt
cp /mnt/etc/nixos/hardware-configuration.nix .Install desired configuration:
sudo nixos-install --flake .#[hostname]