|
1 week ago | |
---|---|---|
wfvm | 1 week ago | |
LICENSE | 10 months ago | |
README.md | 10 months ago | |
hydra-restrictdist.patch | 10 months ago | |
xbill.png | 10 months ago |
A Nix library to create and manage virtual machines running Windows, a medieval operating system found on most computers in 2020. The F stands for "Functional" or a four-letter word of your choice.
wfvm.makeWindowsImage { installCommands = [ wfvm.layers.anaconda3 ]; };
gives you a VM image with Anaconda3 installed, and wfvm.makeWindowsImage { installCommands = [ wfvm.layers.anaconda3 wfvm.layers.msys2 ]; };
gives you one with both Anaconda3 and MSYS2 installed. The base Windows installation and the Anaconda3 data are shared between both images, and only the MSYS2 installation is performed when building the second image after the first one has been built.Example applications:
Thanks to Adam Höse from Tweag.io for help with this development.
If in impure mode
nix-build demo-image.nix
./result
Results in a file called c.img
If in pure mode
nix-build demo-image.nix
ls -la ./result
Results in a symlink to the image in the nix store
Sometimes it can be useful to build the image outside of the Nix sandbox for debugging purposes.
For this purpose we have an attribute called impureMode
which outputs the shell script used by Nix inside the sandbox to build the image.