Cannot get RTX 3050 GPU to work on my Arch system

Hello everyone. I bought a new computer and installed Arch on it immediately.
I tried installing NVIDIA drivers but this simply doesn’t seem to work, as neither the PC nor any software seems to be using the GPU. They only use the integrated Intel GPU in this system.

I think it might have to do with the fact that I’m using Wayland.

For reference, this is an Acer Nitro 5 Laptop. Would really appreciate any help anyone might be able to offer.
Thank you.

If you’re running wayland on a hybrid graphics notebook, you should be able to make use of the nvidia gpu for X11 apps using xwayland and offloading, try
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears
then check nvidia-smi if glxgears is running on the nvidia gpu.

Thank you for your reply. Could you please tell me where I should introduce this line?

just open a terminal on your desktop and copy and run it. Once you see the gears, open a second terminal and run nvidia-smi.