Use feh only as a fallback if the xserver is actually enabled.

Otherwise feh is installed even though no xserver is available.
This commit is contained in:
Pascal Wittmann 2014-03-04 09:10:23 +01:00
parent c4d5757e29
commit c2fcf07f06

View file

@ -7,9 +7,9 @@ let
xcfg = config.services.xserver;
cfg = xcfg.desktopManager;
# Whether desktop manager `d' is capable of setting a background.
# If it isn't, the `feh' program is used as a fallback.
needBGCond = d: ! (d ? bgSupport && d.bgSupport);
# If desktop manager `d' isn't capable of setting a background and
# the xserver is enabled, the `feh' program is used as a fallback.
needBGCond = d: ! (d ? bgSupport && d.bgSupport) && xcfg.enable;
in