mirror of
https://github.com/danth/stylix
synced 2024-11-22 12:13:08 +00:00
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:
parent
99bcaa5520
commit
266db7f00c
1 changed files with 3 additions and 7 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue