stylix: simplify 'mkEnableTarget' documentation (#399)

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
This commit is contained in:
NAHO 2024-06-01 05:33:55 +02:00 committed by GitHub
parent 99bcaa5520
commit 266db7f00c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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";
};
}