nixos gtk.iconCache.enable: default from xserver.enable
It's a quick approximation to unblock unstable channels after #48116.
This commit isn't ideal, as I suspect most wayland users won't have
xserver.enable, so they will lose the icon cache in case they had gtk
in system path (otherwise they didn't get cache anyway).
I considered using environment.noXlibs, but the nixos tests installing
headless systems do *not* get that option, so we would still be pulling
gtk in many cases where it's clearly not desired. We need to design
this more carefully.
commit80738ed9dc0ce48d7796baed5364eef8072c794d
authorVladimír Čunát <vcunat@gmail.com>
dateSat 17 Nov 2018, 11:07 (8 years ago)
parent6d8953b
nixos/modules/config/gtk/gtk-icon-cache.nix+1−1
@@ -5,7 +5,7 @@ with lib;
55 options = {
66 gtk.iconCache.enable = mkOption {
77 type = types.bool;
8− default = true;
8+ default = config.services.xserver.enable;
99 description = ''
1010 Whether to build icon theme caches for GTK+ applications.
1111 '';