Create host with nixos-anywhere

We use a nixos-anywhere wrapper script to deploy new hosts. The wrapper script takes care of copying persistent host keys before calling nixos-anywhere.

To accomplish that boot the host from a nixos image and setup a root password.

sudo su
passwd

After that get the hosts ip using ip a and start deployment from your own machine:

# from infrastrucutre repository root dir:
nix develop .#
remote-install hostname 10.0.42.23

Testing Disko

Testing disko partitioning is working quite well. Just run the following and check the datasets in the vm:

nix run -L .\#nixosConfigurations.fanny.config.system.build.vmWithDisko