diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-01 16:57:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 16:57:30 +0100 |
commit | 4ca8261132ee5480101bb67c14eed4679c06cd4a (patch) | |
tree | a50089e90ea61d3925da25e2119c9755e325e192 /nixos/modules/virtualisation | |
parent | b7fddb65f4b695abc0a43b58effac5c45db59cf5 (diff) |
nixos/vmware-guest: depend headless option on xserver availability
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/vmware-guest.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/vmware-guest.nix b/nixos/modules/virtualisation/vmware-guest.nix index 3b4d484fc8b9f..b8f0a4cf668ef 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."; }; }; |