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:
Matt Sturgeon 2025-06-13 09:56:12 +01:00 committed by awwpotato
parent 27721407de
commit ab2f48fc3a

View file

@ -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 =