nixos/nvidia: improve the assertion again

/cc ac19d5e34 #51836.
This commit is contained in:
Vladimír Čunát 2018-12-12 00:20:52 +01:00
parent 536d0cc3a7
commit ad3e9191d1
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -101,7 +101,7 @@ in
config = mkIf enabled {
assertions = [
{
assertion = !config.services.xserver.displayManager.gdm.wayland;
assertion = with config.services.xserver.displayManager; gdm.enable -> !gdm.wayland;
message = "NVIDIA drivers don't support wayland";
}
{