···6262$ sudo launchctl kickstart -k system/org.nixos.nix-daemon
6363```
64646565-## Example flake usage
6565+## Example flake usage {#sec-darwin-builder-example-flake}
66666767```
6868{
···120120}
121121```
122122123123-## Reconfiguring the builder
123123+## Reconfiguring the builder {#sec-darwin-builder-reconfiguring}
124124125125Initially you should not change the builder configuration else you will not be
126126able to use the binary cache. However, after you have the builder running locally
+9-9
doc/builders/special/vm-tools.section.md
···6677A bash script fragment that produces a disk image at `destination`.
8899-### Attributes
99+### Attributes {#vm-tools-createEmptyImage-attributes}
10101111* `size`. The disk size, in MiB.
1212* `fullName`. Name that will be written to `${destination}/nix-support/full-name`.
···20202121If the build fails and Nix is run with the `-K/--keep-failed` option, a script `run-vm` will be left behind in the temporary build directory that allows you to boot into the VM and debug it interactively.
22222323-### Attributes
2323+### Attributes {#vm-tools-runInLinuxVM-attributes}
24242525* `preVM` (optional). Shell command to be evaluated *before* the VM is started (i.e., on the host).
2626* `memSize` (optional, default `512`). The memory size of the VM in MiB.
2727* `diskImage` (optional). A file system image to be attached to `/dev/sda`.
2828 Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
29293030-### Examples
3030+### Examples {#vm-tools-runInLinuxVM-examples}
31313232Build the derivation hello inside a VM:
3333```nix
···56565757Takes a file, such as an ISO, and extracts its contents into the store.
58585959-### Attributes
5959+### Attributes {#vm-tools-extractFs-attributes}
60606161* `file`. Path to the file to be extracted.
6262 Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
6363* `fs` (optional). Filesystem of the contents of the file.
64646565-### Examples
6565+### Examples {#vm-tools-extractFs-examples}
66666767Extract the contents of an ISO file:
6868```nix
···82828383Generate a script that can be used to run an interactive session in the given image.
84848585-### Examples
8585+### Examples {#vm-tools-makeImageTestScript-examples}
86868787Create a script for running a Fedora 27 VM:
8888```nix
···100100101101A set of functions that build a predefined set of minimal Linux distributions images.
102102103103-### Images
103103+### Images {#vm-tools-diskImageFuns-images}
104104105105* Fedora
106106 * `fedora26x86_64`
···126126 * `debian11i386`
127127 * `debian11x86_64`
128128129129-### Attributes
129129+### Attributes {#vm-tools-diskImageFuns-attributes}
130130131131* `size` (optional, defaults to `4096`). The size of the image, in MiB.
132132* `extraPackages` (optional). A list names of additional packages from the distribution that should be included in the image.
133133134134-### Examples
134134+### Examples {#vm-tools-diskImageFuns-examples}
1351351361368GiB image containing Firefox in addition to the default packages:
137137```nix