stylix: only read autoEnable in mkEnableWallpaper's example
Previously the example evaluated `config.stylix.image`, which should not be done by the docs. Since `mkEnableWallpaper` already assumes `autoEnable` is static when it evaluates `defaultText`, we can do the same for `example`.
This commit is contained in:
parent
27721407de
commit
ab2f48fc3a
1 changed files with 5 additions and 1 deletions
|
|
@ -113,7 +113,11 @@
|
|||
lib.literalExpression "config.stylix.image != null"
|
||||
else
|
||||
false;
|
||||
example = config.stylix.image == null;
|
||||
example =
|
||||
if autoEnable then
|
||||
lib.literalExpression "config.stylix.image == null"
|
||||
else
|
||||
true;
|
||||
};
|
||||
|
||||
mkEnableIf =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue