From 69303679a4e33a407f3fa36fa9b9585d917f2bf8 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sun, 11 May 2025 22:21:05 +0100 Subject: [PATCH] kubecolor: check `stylix.enable` All targets should check the global `enable` option, not just their own. --- modules/kubecolor/hm.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/kubecolor/hm.nix b/modules/kubecolor/hm.nix index 8a306130..64d878fa 100644 --- a/modules/kubecolor/hm.nix +++ b/modules/kubecolor/hm.nix @@ -1,9 +1,12 @@ { config, lib, ... }: +let + cfg = config.stylix.targets.kubecolor; +in { options.stylix.targets.kubecolor.enable = config.lib.stylix.mkEnableTarget "kubecolor" true; - config = lib.mkIf config.stylix.targets.kubecolor.enable { + config = lib.mkIf (config.stylix.enable && cfg.enable) { programs.kubecolor.settings = { preset = if config.stylix.polarity == "either" then "" else "${config.stylix.polarity}";