Document how to use

This commit is contained in:
Graham Christensen
2020-06-08 10:02:39 -04:00
parent 344485d836
commit eece64679c

View File

@@ -18,6 +18,17 @@ Also, the future should include tests in this repo.
netboot image in just 12 seconds, and the initrd is not rebuilt. netboot image in just 12 seconds, and the initrd is not rebuilt.
## How to Use
First set up recursive nix on your builder. Then:
```
$ nix-build '<nixpkgs/nixos>' -I nixos-config=./size-test/base.nix -A config.system.build.ipxeBootDir
```
and boot off of `./result/netboot.ipxe`. The initial build may take
a few minutes, but subsequent builds will only take a few seconds.
## Setting up recursive nix ## Setting up recursive nix
Setting up recursive Nix requires support on the build machine: Setting up recursive Nix requires support on the build machine: