2019-04-18 22:42:19 +08:00
|
|
|
# Preparation steps
|
|
|
|
|
|
|
|
## Install a Windows image
|
2019-04-08 08:32:24 +08:00
|
|
|
|
2020-01-10 03:19:15 +08:00
|
|
|
1. Adjust build.nix accordingly
|
|
|
|
2. Run:
|
2019-04-18 22:42:19 +08:00
|
|
|
|
2020-01-10 03:19:15 +08:00
|
|
|
If in impure mode
|
2019-04-18 22:42:19 +08:00
|
|
|
```shell
|
2020-01-10 03:19:15 +08:00
|
|
|
nix-build build.nix
|
|
|
|
./result
|
2019-04-18 22:42:19 +08:00
|
|
|
```
|
2020-01-10 03:19:15 +08:00
|
|
|
Results in a file called c.img
|
2019-04-08 23:41:05 +08:00
|
|
|
|
2020-01-27 18:23:53 +08:00
|
|
|
If in pure mode
|
2019-04-08 23:41:05 +08:00
|
|
|
```shell
|
2020-01-27 18:23:53 +08:00
|
|
|
nix-build
|
2020-01-10 03:19:15 +08:00
|
|
|
ls -la ./result
|
2019-04-08 23:41:05 +08:00
|
|
|
```
|
2020-01-10 03:19:15 +08:00
|
|
|
Results in a symlink to the image in the nix store
|