From 698efcb7b5e556e36711ec7a612b1fccdb3eb47f Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Tue, 15 Aug 2017 17:04:04 +0800 Subject: [PATCH] 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. --- nixos/modules/virtualisation/vmware-guest.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/vmware-guest.nix b/nixos/modules/virtualisation/vmware-guest.nix index ce1224a8f131..68930a0e3254 100644 --- a/nixos/modules/virtualisation/vmware-guest.nix +++ b/nixos/modules/virtualisation/vmware-guest.nix @@ -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" ];