wfvm/wfvm
Sebastien Bourdeauducq b3515a9192 copy from nix-scripts 2020-06-28 14:23:43 +08:00
..
bundle copy from nix-scripts 2020-06-28 14:23:43 +08:00
layers copy from nix-scripts 2020-06-28 14:23:43 +08:00
openssh copy from nix-scripts 2020-06-28 14:23:43 +08:00
README.md copy from nix-scripts 2020-06-28 14:23:43 +08:00
autounattend.nix copy from nix-scripts 2020-06-28 14:23:43 +08:00
default.nix copy from nix-scripts 2020-06-28 14:23:43 +08:00
demo-image.nix copy from nix-scripts 2020-06-28 14:23:43 +08:00
demo-ssh.nix copy from nix-scripts 2020-06-28 14:23:43 +08:00
utils.nix copy from nix-scripts 2020-06-28 14:23:43 +08:00
win.nix copy from nix-scripts 2020-06-28 14:23:43 +08:00

README.md

Preparation steps

Install a Windows image

  1. Adjust demo-image.nix accordingly
  2. 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.