forked from M-Labs/nix-scripts
6bbbd41ece
This one will be installed in a separate step incrementally |
||
---|---|---|
.. | ||
bundle | ||
nuget | ||
openssh | ||
README.md | ||
autounattend.nix | ||
build.nix | ||
default.nix | ||
install.nix | ||
manual-test-run.nix | ||
pkgs.nix | ||
qemu.nix | ||
redhat-cert.cer | ||
run-test.nix | ||
win.nix |
README.md
Preparation steps
Install a Windows image
- Adjust build.nix accordingly
- Run:
If in impure mode
nix-build build.nix
./result
Results in a file called c.img
If in pure mode
nix-build build.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.