nixos/doc/types: note submodules’ default’s behaviour
This commit is contained in:
parent
34e9589d5a
commit
9a8b7640e0
|
@ -308,6 +308,10 @@ The option set can be defined directly
|
|||
([Example: Directly defined submodule](#ex-submodule-direct)) or as reference
|
||||
([Example: Submodule defined as a reference](#ex-submodule-reference)).
|
||||
|
||||
Note that even if your submodule’s options all have a default value,
|
||||
you will still need to provide a default value (e.g. an empty attribute set)
|
||||
if you want to allow users to leave it undefined.
|
||||
|
||||
::: {#ex-submodule-direct .example}
|
||||
::: {.title}
|
||||
**Example: Directly defined submodule**
|
||||
|
|
Loading…
Reference in a new issue