Manual example

Functions

toString

Convert the given value to a string

Example
nix> toString 42
"42"

NixOS-like module options

See also

Example of ref links:

And failing examples:

  • services.nonexistent.enable

  • missingFunction

Service Foo

services.foo.enable

Enable the Foo service

Default value
false
Example
true
services.foo.settings submodule

Settings for Foo

Default value
{}
Example
{
   baz = [ "one" ];
}
services.foo.settings.baz list of (string) [read-only]

List of config to handle

Default value
[]
Example
[ "one" "two" "three" ]

Service Bar

services.bar submodule
enable

Enable the Bar service

Default value
false
Example
true
settings attribute set

Settings for Bar

Default value
{}
Example
{
   baz = [ "one" ];
}
baz list of (string)

List of config to handle

Default value
[]
Example
[ "one" "two" "three" ]

Python

Hello

class TheModule.TheClass(int, float)
class Thing
bla(str, list[str])
class TheModule.Thing
bla(str, list[str])