Automatic NixOS-like options¶
Tip
Click the [source] link next to the object
to open the declaration source file.
Click the eye icon in the upper-right of the page to open the Markdown source file.
Document a whole module¶
To document a whole module,
use the nix:automodule directive.
For example:
```{default-domain} nix
```
```{automodule} services.autobar
```
Renders:
- services.autobar.enable boolean[source]¶
Whether to enable the Bar service.
Default value¶falseExample¶true
- services.autobar.openFirewall unspecified value[source]¶
Whether to automatically open the firewall.
Warning
This opens the firewall on all network interfaces.
Added in version nixos-24.05.
Default value¶falseExample¶true
- services.autobar.pkg package[source]¶
Alias of
services.autobar.package.
Document a single option¶
To document a single option,
use the nix:autooption directive.
For example:
```{default-domain} nix
```
```{autooption} services.autobar.enable
```
Renders: