EndeavourOS might have a tool for installing Nvidia drivers. I will wait for someone else to post it here.
If you feel more adventurous, check the following:
You’d follow the below in Arch Linux: https://wiki.archlinux.org/title/NVIDIA_Optimus
Personally, just installing bumblebee
or optimus-manager
with Nvidia proprietary drivers works for me.