Nix setup for a windows virtual machine?

I develop cross platform software, so it’s important for me to make sure that my stuff works on windows. My current workflow is to dual-boot into windows, but, as I do this rarely, the windows is bitrotted — it doesn’t have my dev tools, my ssh keys, it in general is less hardened than my NixOS host.

I am thinking that a better approach for me would be to boot a windows VM from my NixOS. But the question is: how can I automate the setup? So that I don’t get a bare windows virtual box, but have, eg, rust installed already? Ideally, of course, I’d love for this VM to be a part of my configuration.nix.

Is there anything like this?

Win 3.0 and WfW 3.11: GitHub - MatthewCroughan/NixThePlanet: Run macOS, Windows and more via a single Nix command, or simple nixosModules
Win 10: M-Labs/wfvm: WinF*VM - wfvm - M-Labs Git

2 Likes