From 11166aa5a2b92437f03cf0b57fd51ef490dee635 Mon Sep 17 00:00:00 2001 From: Daniel Thwaites Date: Mon, 10 Jun 2024 20:33:08 +0100 Subject: [PATCH] stylix: remove `cfg.enable` from `mkEnableTarget` default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The individual modules are already gated by `stylix.enable`, so there is no need for it to also affect the value of `stylix.targets.«name».enable`. This should not produce any noticeable change in behavior. --- stylix/target.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylix/target.nix b/stylix/target.nix index d9507e6b..7c061fa0 100644 --- a/stylix/target.nix +++ b/stylix/target.nix @@ -41,7 +41,7 @@ with lib; mkEnableOption "theming for ${humanName}" // { - default = cfg.enable && cfg.autoEnable && autoEnable; + default = cfg.autoEnable && autoEnable; example = !autoEnable; } // optionalAttrs autoEnable {