Enable GTK theming for more Wayland compositors 💩

This commit is contained in:
Daniel Thwaites 2022-05-02 13:49:05 +01:00
parent 671068f7f6
commit b2ae657e97
No known key found for this signature in database
GPG key ID: D8AFC4BF05670F9D

View file

@ -140,8 +140,11 @@ let
name = "Materia-compact";
};
# GTK will probably be unused without Xorg / Wayland
in lib.mkIf (config.services.xserver.enable || config.programs.sway.enable) {
# GTK will probably be unused without Xorg / Wayland.
# There isn't a single option which covers all Wayload compositors,
# and many of them don't have NixOS modules at all. Therefore, we use
# OpenGL as the next best condition to detect that Wayland is enabled.
in lib.mkIf (config.services.xserver.enable || config.hardware.opengl.enable) {
# Required for Home Manager's GTK settings to work
programs.dconf.enable = true;