doc: note modules must check stylix.enable
Added a note to the docs to clarify that a target module must always check the global `stylix.enable`, in addition to its own `enable` option.
This commit is contained in:
parent
030af3e071
commit
94e68af4a4
1 changed files with 7 additions and 0 deletions
|
|
@ -58,6 +58,13 @@ A general format for modules is shown below.
|
|||
}
|
||||
```
|
||||
|
||||
> [!CAUTION]
|
||||
> You **must** check _both_ `config.stylix.enable` _and_ your target's own
|
||||
> `enable` option before defining any config.
|
||||
>
|
||||
> In the above example this is done using
|
||||
> `config = lib.mkIf (config.stylix.enable && config.stylix.targets.«name».enable)`.
|
||||
|
||||
The human readable name will be inserted into the following sentence:
|
||||
|
||||
> Whether to enable theming for «human readable name».
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue