kubecolor: check stylix.enable
All targets should check the global `enable` option, not just their own.
This commit is contained in:
parent
7051eb4db1
commit
69303679a4
1 changed files with 4 additions and 1 deletions
|
|
@ -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}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue