From 2557e071a6b17bca58becaacce1fb32282626a68 Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Sat, 1 Jun 2024 03:06:00 +0200 Subject: [PATCH] stylix: simplify 'mkEnableTarget' documentation Simplify the 'stylix.mkEnableTarget' documentation. The following issue is to be resolved in https://github.com/danth/stylix/issues/400: > Due to some targets not being enabled by default with > 'stylix.mkEnableTarget', the documentation incorrectly generates > 'Default: false' in some cases --- stylix/target.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/stylix/target.nix b/stylix/target.nix index 0ff57da3..0350f0fa 100644 --- a/stylix/target.nix +++ b/stylix/target.nix @@ -27,12 +27,8 @@ with lib; "styling for ${humanName}" // { default = config.stylix.autoEnable && autoEnable; - - # We can't substitute the target name into this description because some - # don't make sense: "if the desktop background using Feh is installed" - defaultText = literalMD '' - `true` if `stylix.autoEnable == true` and the target is installed, - otherwise `false`. - ''; + } + // optionalAttrs autoEnable { + defaultText = literalExpression "stylix.autoEnable"; }; }