open-vm-tools: do not pull x dependencies unconditionally

The "headless" configuration option is ignored because we unconditionally
reference pkgs.open-vm-tools.

This fixes that.
This commit is contained in:
Peter Hoeg 2017-08-15 17:04:04 +08:00
parent 2f44cbc1ad
commit 698efcb7b5

View File

@ -33,7 +33,7 @@ in
serviceConfig.ExecStart = "${open-vm-tools}/bin/vmtoolsd";
};
environment.etc."vmware-tools".source = "${pkgs.open-vm-tools}/etc/vmware-tools/*";
environment.etc."vmware-tools".source = "${open-vm-tools}/etc/vmware-tools/*";
services.xserver = mkIf (!cfg.headless) {
videoDrivers = mkOverride 50 [ "vmware" ];