kubecolor: check stylix.enable

All targets should check the global `enable` option, not just their own.
This commit is contained in:
Matt Sturgeon 2025-05-11 22:21:05 +01:00
parent 7051eb4db1
commit 69303679a4
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -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}";