# All as root
HOST=... # set host variable to use proper configuration
nix-shell
git clone https://this.repo.url/ /etc/nixos
cd /etc/nixos
sudo nixos-install --root /mnt --impure --flake .#$HOST
# Reboot
# Go to the repo directory
just switch
nix build .#nixosConfigurations.isoimage.config.system.build.isoImage