From 4ca8261132ee5480101bb67c14eed4679c06cd4a Mon Sep 17 00:00:00 2001 From: Sandro Date: Tue, 1 Nov 2022 16:57:30 +0100 Subject: [PATCH] nixos/vmware-guest: depend headless option on xserver availability --- nixos/modules/virtualisation/vmware-guest.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/vmware-guest.nix b/nixos/modules/virtualisation/vmware-guest.nix index 3b4d484fc8b9..b8f0a4cf668e 100644 --- a/nixos/modules/virtualisation/vmware-guest.nix +++ b/nixos/modules/virtualisation/vmware-guest.nix @@ -16,7 +16,8 @@ in enable = mkEnableOption (lib.mdDoc "VMWare Guest Support"); headless = mkOption { type = types.bool; - default = false; + default = !config.services.xserver.enable; + defaultText = "!config.services.xserver.enable"; description = lib.mdDoc "Whether to disable X11-related features."; }; };