From a95ba1f01853cf859d78f7b5a7113fe67a4c8e78 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Wed, 25 Sep 2024 20:57:24 +0200 Subject: [PATCH] home/stylix: Enable GTK theming only if graphical --- home/config/nil/stylix.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/home/config/nil/stylix.nix b/home/config/nil/stylix.nix index d30f61d..58347a3 100644 --- a/home/config/nil/stylix.nix +++ b/home/config/nil/stylix.nix @@ -1,7 +1,12 @@ -{ ... }: { config, lib, pkgs, ... }: { +{ ... }: { config, lib, pkgs, ... }@args: +let + osConfig = args.osConfig or { }; +in { stylix = { enable = true; base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml"; image = config.lib.stylix.pixel "base00"; + + targets.gtk.enable = osConfig.hardware.graphics.enable or false; }; }