diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index 52f1773e9c45..50c085dd7ee2 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -42,7 +42,7 @@ in config = mkIf enabled { assertions = [ { - assertion = services.xserver.displayManager.gdm.wayland; + assertion = config.services.xserver.displayManager.gdm.wayland; message = "NVidia drivers don't support wayland"; } ];