# For nvidia drivers versions Above 510, keep Wayland by default
ATTR{version}=="[5-9][1-9][0-9].*", GOTO="gdm_end"
# For nvidia drivers versions 470-495, prefer Xorg by default
GOTO="gdm_prefer_xorg"
This pattern does not match e.g. 600.*, so some future nvidia releases
might run with a default of Xorg instead of wayland.
Also note the bad capitalization of "Above" in the comment above.
Andreas