Let me clarify. I have a laptop with Intel and NVIDIA GPU, which is accesed through Optimus (no direct access). I am able to use the NVIDIA GPU as primary GPU only on X11. You almost have all the required configurations in your automation repo. The things that you lack in order to change from Intel to NVIDIA as primary GPU on X11 is the next:
[ /etc/X11/xorg.conf.d/nvidia-drm-outputclass.conf ]
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes" # This can be commented if wanted Intel as primary GPU
Option "SLI" "Auto"
Option "BaseMosaic" "on"
EndSection
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
Option "AccelMethod" "none" # Comment when using Intel as primary
EndSection
[ /etc/X11/xorg.conf.d/nvidia-modules.conf ]
Section "Files"
ModulePath "/usr/lib64/xorg/modules"
ModulePath "/opt/nvidia/lib64/xorg/modules"
EndSection
[ /etc/gdm/custom.conf ]
[daemon]
WaylandEnable=false # This can be commented if wanted Wayland as default
Now, as for Wayland. I am unable to use NVIDIA GPU as primary GPU because it stays at a black screen when it starts. What I gave you about Mutter selecting a different GPU as primary is for people who have a desktop PC and a NVIDIA/AMD GPU on PCIe (no Optimus).