I do it like this:
https://codeberg.org/flk/meta-gnome-image/src/branch/master/recipes-gnome/gdm/gdm_%25.bbappend


gdm should be started automatically using systemd service: