From 93eb9c5401b0efe517d9fe782638012fec99ebef Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Tue, 20 May 2025 21:36:02 +0100 Subject: [PATCH] stylix: simplify `mkEnableTarget` & `mkEnableWallpaper` defaultText Drop the redundant "same as" prefix and instead use a `literalExpression`. Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- stylix/target.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stylix/target.nix b/stylix/target.nix index 1074acb3..9ff4cd89 100644 --- a/stylix/target.nix +++ b/stylix/target.nix @@ -44,7 +44,7 @@ example = !autoEnable; } // lib.optionalAttrs autoEnable { - defaultText = lib.literalMD "same as `stylix.autoEnable`"; + defaultText = lib.literalExpression "stylix.autoEnable"; }; mkEnableWallpaper = humanName: autoEnable: @@ -55,7 +55,7 @@ type = lib.types.bool; } // lib.optionalAttrs autoEnable { - defaultText = lib.literalMD "`stylix.image != null`"; + defaultText = lib.literalExpression "stylix.image != null"; }; }; }