nixos/vmware-guest: depend headless option on xserver availability

This commit is contained in:
Sandro 2022-11-01 16:57:30 +01:00 committed by GitHub
parent b7fddb65f4
commit 4ca8261132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.";
};
};