RST Autodoc examples

NixOS-like module options

Using autooption

services.autofoo.settings TOML value[source]

Settings for the Foo service.

Added in version nixos-24.05.

Default value
{ }

Using automodule

services.autofoo
services.autofoo.enable boolean[source]

Whether to enable the Foo service.

Default value
false
Example
true
services.autofoo.package package[source]

The hello package to use.

Default value
pkgs.hello
services.autofoo.settings TOML value[source]

Settings for the Foo service.

Added in version nixos-24.05.

Default value
{ }
services.autofoo.settings."com.package/config" unspecified value [read-only][source]
services.autofoo.settings.bar
services.autofoo.settings.bar.bar
services.autofoo.settings.bar.bar.baz list of string[source]

How to configure bar’s baz

Default value
[ ]
Example
[
  "hello"
  "world"
]