diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index efc65a55af70..8f1e2671ece0 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -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"; } {