From ab2f48fc3a878be1cfd9dadc188fa03a56d8fc6e Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 13 Jun 2025 09:56:12 +0100 Subject: [PATCH] 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`. --- stylix/target.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stylix/target.nix b/stylix/target.nix index f8b6861b..0b12847c 100644 --- a/stylix/target.nix +++ b/stylix/target.nix @@ -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 =