Skip to content

Commit

Permalink
stylix: simplify 'mkEnableTarget' documentation
Browse files Browse the repository at this point in the history
Simplify the 'stylix.mkEnableTarget' documentation.

The following issue is to be resolved in
danth#400:

> Due to some targets not being enabled by default with
> 'stylix.mkEnableTarget', the documentation incorrectly generates
> 'Default: false' in some cases
  • Loading branch information
trueNAHO committed Jun 1, 2024
1 parent 99bcaa5 commit 2557e07
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions stylix/target.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
}

0 comments on commit 2557e07

Please sign in to comment.