Clone the configuration directory to your home directory:
git clone https://github.com/zeapoz/nixos-flow ~/nixosSymlink the cloned directory to /etc/nixos:
sudo ln -s ~/nixos /etc/nixosRebuild as normal:
sudo nixos-rebuild switch --flake .#flowMake sure that you have prepared the system by partitioning and mounting the drives. For details on this step, refer to the Installation Guide.
Once done, clone the configuration directory:
git clone https://github.com/zeapoz/nixos-flow /mnt/nixosGenerate a new hardware configuration and replace the existing one:
sudo nixos-generate-config --root /mnt
sudo mv -f /mnt/nixos/hardware-configuration.nix /mnt/nixos/modules/host/_hardware-configuration.nixInstall the system:
cd /mnt
sudo nixos-install --flake .#flow