nixos/vmware-guest: depend headless option on xserver availability
This commit is contained in:
parent
b7fddb65f4
commit
4ca8261132
1 changed files with 2 additions and 1 deletions
|
@ -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.";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue