How to run a NixOS on a virtual machine on MacOS with M1?

I’ve had some success with this. I’m using VMware Fusion Tech Preview (Player Version e.x.p (18656771)). It’s technically preview software with ARM support, but I haven’t run into any issues with VMware itself.

Finding the right ISOs was a little tricky. They’re not available on the homepage anywhere, and the links in the wiki (NixOS on ARM/UEFI - NixOS Wiki) only point to unstable builds. Eventually I dug around and found Hydra - nixos:release-21.05-aarch64:nixos.iso_minimal.aarch64-linux. I should probably edit the wiki to make this more discoverable at some point.

I used my own tool, nixos-up, and after fixing a few bugs (like this and the fact that gdm doesn’t work) I was off to the races.

Unfortunately VMware guest tools are not currently supported on aarch64-linux yet. Not sure if this is an issue with nixpkgs or with the upstream builds.

2 Likes