vps/newinfra/provision
2024-07-28 14:04:54 +02:00
..
README.md wg 2024-07-28 14:04:54 +02:00

provisioning

NixOS is provisioned by running nixos-infect over a default image.

Contabo sets the hostname to something like vmi######.contaboserver.net, Nixos only allows RFC 1035 compliant hostnames (see here). Run hostname something_without_dots before running the script. If you run the script before changing the hostname - remove the /etc/nixos/configuration.nix so it's regenerated with the new hostname.

hostname tmp
curl -LO https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect
bash nixos-infect