home/stylix: Enable GTK theming only if graphical
This commit is contained in:
parent
e988111c49
commit
a95ba1f018
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue