sudo su
nix-env -iA nixos.git
git clone <url> /mnt/<path>
nixos-install --flake .#<host> || in my case username
reboot
sudo rm -r /etc/nixos/configuration.nix
/ move build to desired location
sudo nixos-rebuild switch --flake ~/.flake/#user
nix flake update
sudo nixos-rebuild switch --flake ~/.flake/#vallium
efibootmgr -c -d /dev/nvme0n1p4 -p 1 -L NixOS-boot -l '\EFI\NixOS-boot\grubx64.efi'
sudo nixos-rebuild switch --impure --flake ~/.flake/#vallium
curl -s https://raw.githubusercontent.com/bornav/.flake/main/deployment.sh | bash
curl -L https://raw.githubusercontent.com/bornav/.flake/main/deployment.sh | sh -s -- --daemon --yes