Skip building GTK theme when Xserver is disabled

This commit is contained in:
Daniel Thwaites 2020-12-26 12:59:02 +00:00
parent 7666cda2a3
commit 818c756a18
No known key found for this signature in database
GPG key ID: D8AFC4BF05670F9D

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, config, lib, ... }:
let
materia = with pkgs; stdenvNoCC.mkDerivation {
@ -73,7 +73,8 @@ let
name = "stylix";
};
in {
# GTK will probably be unused without Xserver
in lib.mkIf config.services.xserver.enable {
# Required for Home Manager's GTK settings to work
services.dbus.packages = [ pkgs.gnome3.dconf ];