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/#bocmo
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
nix run --extra-experimental-features nix-command --extra-experimental-features flakes github:nix-community/nixos-anywhere -- --flake ~/.flake#dockeropen --vm-test
nix run github:nix-community/nixos-anywhere -- --flake ~/.flake#dockeropen [email protected]
nix run github:nix-community/nixos-anywhere -- --flake ~/.flake#dockeropen --arg disks '[ "/dev/sda" ]' [email protected]
#test
sudo nixos-rebuild switch --flake ~/.flake#dockeropen --target-host nixbuilder_dockeropen
sudo nixos-rebuild switch --flake ~/.flake#$flake_name --builders "ssh://nixbuilder_dockeropen" --build-host nixbuilder_dockeropen