Follow steps from NixOS manual for disk formatting https://nixos.org/manual/nixos/stable/#sec-installation-manual Then follow my steps ;) nixos-generate-config --root /mnt mkdir -p /mnt/home/{your_user} cd /mnt/home/{your_user} git clone .../nixos-config cp /mnt/etc/nixos/hardware-configuration.nix ./nixos-config/hosts/hardware-configuration.nix nixos-install --flake ./nixos-config#nixos Set password for user and reboot passwd {your_user} reboot Give the user edit access sudo chown -R $USER:users ~/nixos-config Update system nix flake update sudo nixos-rebuild boot --flake ~/nixos-config Manually garbage collect sudo nix-collect-garbage -d Check generations sudo nixos-rebuild list-generations