From 3339cc799164a93d619bcaca36994588f1feb613 Mon Sep 17 00:00:00 2001 From: Daniel Thwaites Date: Fri, 12 Aug 2022 19:14:07 +0100 Subject: [PATCH] Simplify documentation of the default value for enable options :memo: --- stylix/target.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/stylix/target.nix b/stylix/target.nix index db515c22..ec2b5687 100644 --- a/stylix/target.nix +++ b/stylix/target.nix @@ -25,13 +25,14 @@ with lib; mkOption { description = "Whether to style ${humanName}."; type = types.bool; - defaultText = literalDocBook '' - When stylix.autoEnable is true: - Enabled when ${humanName} is installed. - When stylix.autoEnable is false: - Defaults to false. + # 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 = literalDocBook '' + true if stylix.autoEnable == true + and the target is installed, otherwise false. ''; + default = config.stylix.autoEnable && autoEnable; }; }