forked from M-Labs/nix-scripts
Sebastien Bourdeauducq
21f3b682c5
It is chock full of bugs and also the instructions on the microsoft website are wrong. |
||
---|---|---|
.. | ||
bundle | ||
layers | ||
openssh | ||
autounattend.nix | ||
default.nix | ||
demo-image.nix | ||
demo-ssh.nix | ||
README.md | ||
utils.nix | ||
win.nix |
Preparation steps
Install a Windows image
- Adjust demo-image.nix accordingly
- Run:
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
Impure/pure mode
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.