stylix: split mkEnableTarget into mkEnableTargetWith
This commit is contained in:
parent
92276a14a7
commit
a4d92fea87
1 changed files with 9 additions and 2 deletions
|
|
@ -38,9 +38,16 @@
|
|||
in
|
||||
{
|
||||
mkEnableTarget =
|
||||
humanName: autoEnable:
|
||||
name: autoEnable:
|
||||
config.lib.stylix.mkEnableTargetWith { inherit name autoEnable; };
|
||||
|
||||
mkEnableTargetWith =
|
||||
{
|
||||
name,
|
||||
autoEnable ? true,
|
||||
}:
|
||||
self.mkEnableIf {
|
||||
description = "Whether to enable theming for ${humanName}.";
|
||||
description = "Whether to enable theming for ${name}.";
|
||||
default = cfg.autoEnable && autoEnable;
|
||||
${if autoEnable then "defaultText" else null} =
|
||||
lib.literalExpression "stylix.autoEnable";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue