- In flake.nix ->
colmenaHive: Add an entry for the target machine - Add
config/<hostname>.nix,hw/<hostname>.nix(or auto-generate withnixos-anywhere, see below), probably adiskoconfig - Home manager, if necessary
- Secrets, if necessary
- Make sure the target machine has ssh open, and register an ssh key with root
- Test the configuration:
nixos-anywhere -- --flake .#<hostname> --vm-test - Install nixos,
nixos-anywhere -- --flake .#<hostname> --generate-hardware-config nixos-generate-config ./hw/<hostname>.nix --target-host root@<host-ip>( !! host-ip, not hostname, as hostname lookup may be lost ) - SSH into the machine, run
tailscale up --login-server=<globals.headscale_domain> - Future install/update with
colmena apply --on <hostname>