Skip to content

Commit 1e6ccad

Browse files
authored
kubecolor: omit preset instead of declaring empty string (#2476)
Fixes: 74ee1ed ("kubecolor: init (#657)") Link: #2476 Reviewed-by: Igor Rzegocki <ajgon@users.noreply.github.com> Reviewed-by: 0xda157 <da157@voidq.com>
1 parent 35d3c1c commit 1e6ccad

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

modules/kubecolor/hm.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
{ mkTarget, ... }:
1+
{ mkTarget, lib, ... }:
22
mkTarget {
33
config = [
44
({ polarity }: {
5-
programs.kubecolor.settings.preset =
6-
if polarity == "either" then "" else polarity;
5+
programs.kubecolor.settings.preset = lib.mkIf (polarity != "either") polarity;
76
})
87
({ colors }: {
98
programs.kubecolor.settings.theme = with colors.withHashtag; {

0 commit comments

Comments
 (0)