doc: add missing section IDs

pennae 830f5b33 bbc56fd1

Changed files
+11 -11
doc
+2 -2
doc/builders/special/darwin-builder.section.md
···
$ sudo launchctl kickstart -k system/org.nixos.nix-daemon
```
-
## Example flake usage
```
{
···
}
```
-
## Reconfiguring the builder
Initially you should not change the builder configuration else you will not be
able to use the binary cache. However, after you have the builder running locally
···
$ sudo launchctl kickstart -k system/org.nixos.nix-daemon
```
+
## Example flake usage {#sec-darwin-builder-example-flake}
```
{
···
}
```
+
## Reconfiguring the builder {#sec-darwin-builder-reconfiguring}
Initially you should not change the builder configuration else you will not be
able to use the binary cache. However, after you have the builder running locally
+9 -9
doc/builders/special/vm-tools.section.md
···
A bash script fragment that produces a disk image at `destination`.
-
### Attributes
* `size`. The disk size, in MiB.
* `fullName`. Name that will be written to `${destination}/nix-support/full-name`.
···
If 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.
-
### Attributes
* `preVM` (optional). Shell command to be evaluated *before* the VM is started (i.e., on the host).
* `memSize` (optional, default `512`). The memory size of the VM in MiB.
* `diskImage` (optional). A file system image to be attached to `/dev/sda`.
Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
-
### Examples
Build the derivation hello inside a VM:
```nix
···
Takes a file, such as an ISO, and extracts its contents into the store.
-
### Attributes
* `file`. Path to the file to be extracted.
Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
* `fs` (optional). Filesystem of the contents of the file.
-
### Examples
Extract the contents of an ISO file:
```nix
···
Generate a script that can be used to run an interactive session in the given image.
-
### Examples
Create a script for running a Fedora 27 VM:
```nix
···
A set of functions that build a predefined set of minimal Linux distributions images.
-
### Images
* Fedora
* `fedora26x86_64`
···
* `debian11i386`
* `debian11x86_64`
-
### Attributes
* `size` (optional, defaults to `4096`). The size of the image, in MiB.
* `extraPackages` (optional). A list names of additional packages from the distribution that should be included in the image.
-
### Examples
8GiB image containing Firefox in addition to the default packages:
```nix
···
A bash script fragment that produces a disk image at `destination`.
+
### Attributes {#vm-tools-createEmptyImage-attributes}
* `size`. The disk size, in MiB.
* `fullName`. Name that will be written to `${destination}/nix-support/full-name`.
···
If 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.
+
### Attributes {#vm-tools-runInLinuxVM-attributes}
* `preVM` (optional). Shell command to be evaluated *before* the VM is started (i.e., on the host).
* `memSize` (optional, default `512`). The memory size of the VM in MiB.
* `diskImage` (optional). A file system image to be attached to `/dev/sda`.
Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
+
### Examples {#vm-tools-runInLinuxVM-examples}
Build the derivation hello inside a VM:
```nix
···
Takes a file, such as an ISO, and extracts its contents into the store.
+
### Attributes {#vm-tools-extractFs-attributes}
* `file`. Path to the file to be extracted.
Note that currently we expect the image to contain a filesystem, not a full disk image with a partition table etc.
* `fs` (optional). Filesystem of the contents of the file.
+
### Examples {#vm-tools-extractFs-examples}
Extract the contents of an ISO file:
```nix
···
Generate a script that can be used to run an interactive session in the given image.
+
### Examples {#vm-tools-makeImageTestScript-examples}
Create a script for running a Fedora 27 VM:
```nix
···
A set of functions that build a predefined set of minimal Linux distributions images.
+
### Images {#vm-tools-diskImageFuns-images}
* Fedora
* `fedora26x86_64`
···
* `debian11i386`
* `debian11x86_64`
+
### Attributes {#vm-tools-diskImageFuns-attributes}
* `size` (optional, defaults to `4096`). The size of the image, in MiB.
* `extraPackages` (optional). A list names of additional packages from the distribution that should be included in the image.
+
### Examples {#vm-tools-diskImageFuns-examples}
8GiB image containing Firefox in addition to the default packages:
```nix