sudo passwd root # via KVM
ssh [email protected]
bash <(curl -s https://raw.githubusercontent.com/ant0ncuranz/nix-config/main/install.sh)
# run init scripts
# install nix
curl -L https://nixos.org/nix/install | sh
# bootstrap
nix --extra-experimental-features nix-command --extra-experimental-features flakes run nix-darwin -- switch --flake '/Users/ant0n/Developer/non-TUB/nix-config#macbook'
# update
rebuild
# verify disk and image size
vim disko/cloudton.nix
# build disk image
nix build .#nixosConfigurations.cloudton.config.system.build.diskoImagesScript
sudo ./result
# transfer image to VPS (boot live system, e.g. nix minimal)
cat main.raw | ssh root@<VPS_IP> "dd of=/dev/xyz"
sudo passwd root # via virt-manager
ssh [email protected]
bash <(curl -s https://raw.githubusercontent.com/ant0ncuranz/nix-config/main/vminstall.sh)