2019-04-08 08:32:24 +08:00
|
|
|
# Preparing a Windows image
|
|
|
|
|
|
|
|
```shell
|
|
|
|
nix-build install.nix
|
|
|
|
result/bin/networked-installer.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
Follow the instructions.
|
2019-04-08 23:41:05 +08:00
|
|
|
|
|
|
|
Then press **return** to automatically complete the installation via SSH. The virtual machine will be shut down when the process is complete.
|
|
|
|
|
|
|
|
Move the image `c.img` to one of Nix' `extra-sandbox-paths` (`nix.sandboxPaths` on NixOS).
|
|
|
|
|
|
|
|
|
|
|
|
# Running the tests
|
|
|
|
|
|
|
|
```shell
|
|
|
|
nix-build --arg diskImage "\"…/c.img\""
|
|
|
|
```
|