home/stylix: Enable GTK theming only if graphical

This commit is contained in:
Mikael 2024-09-25 20:57:24 +02:00
parent e988111c49
commit a95ba1f018
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -1,7 +1,12 @@
{ ... }: { config, lib, pkgs, ... }: { { ... }: { config, lib, pkgs, ... }@args:
let
osConfig = args.osConfig or { };
in {
stylix = { stylix = {
enable = true; enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml"; base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
image = config.lib.stylix.pixel "base00"; image = config.lib.stylix.pixel "base00";
targets.gtk.enable = osConfig.hardware.graphics.enable or false;
}; };
} }