forked from M-Labs/nix-scripts
6b4e6548e5
The windows XML parser is shit and bails out extremely late, making debugging this a 1+ hour ordeal for every iteration. Let's just write out a powershell script and be done with it. |
||
---|---|---|
.. | ||
bundle | ||
nuget | ||
autounattend.nix | ||
build.nix | ||
default.nix | ||
install.nix | ||
install.txt | ||
manual-test-run.nix | ||
pkgs.nix | ||
qemu.nix | ||
README.md | ||
redhat-cert.cer | ||
run-test.nix | ||
win.nix |
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
ls -la ./result
Results in a symlink to the image in the nix store