From 7bcf3ce6c9e9225e87d4e3b0c2e7d27a39954c02 Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Tue, 6 Jun 2023 11:41:31 +0200 Subject: [PATCH] Fix palette generation when system does not use stylix (#106) --- stylix/palette.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stylix/palette.nix b/stylix/palette.nix index 89da9666a..fac93a1a7 100644 --- a/stylix/palette.nix +++ b/stylix/palette.nix @@ -98,7 +98,7 @@ in { ''; type = with types; oneOf [ path lines attrs ]; default = - if args ? "osConfig" && cfg.image != args.osConfig.stylix.image + if cfg.image != fromOs [ "image" ] null then generatedScheme else fromOs [ "base16Scheme" ] generatedScheme; defaultText = literalMD ''