Roles¶
Tip
With Intersphinx, these cross-references can resolve to objects defined in an external Sphinx project. See Cross-references for more information.
- :nix:obj:¶
Refer to any object defined by
sphinxcontrib-nixdomain.For example:
See the {nix:obj}`services.foo.enable` object.Is rendered as:
See the
services.foo.enableobject.
- :nix:option:¶
Refer to an option from the NixOS module system.
For example:
See the {nix:option}`services.foo.enable` option.Is rendered as:
See the
services.foo.enableoption.
- :nix:pkg:¶
Refer to a Nix package.
For example:
See the {nix:pkg}`hello` package.Is rendered as:
See the
hellopackage.
- :nix:func:¶
Refer to a Nix function.
For example:
See the {nix:func}`exampleLib.myFunc` function.Is rendered as:
See the
exampleLib.myFuncfunction.