Declarative vms (Ubuntu) on top of nixos

Can anyone point me to a good (current) tutorial for running non-nixos VMs on a nixos host? Declaring the VMs via nix.

I would like to provision VMs on my nixos server via nix. Vs using something like deploying libvirt (on nixos) and using something like terraform.

I have to lab constantly for work, and want to make it easy to deploy the base, and I tend to use my nixos server, and at times deploy VMs to my desktop. My use case is mostly around Kubernetes on Ubuntu, hence VMs vs containers, etc.

Thank you.

1 Like