Cant get minecraft to run my Dgpu

So im new to using linux on a laptop with two gpus and i cant for the life of me figure out how to get minecraft to use my dgpu using modriniths or prism launcher

I didnt enable the secure boot at the start but i have done that now

specs
Laptop-Dell G16 7630
Processor-13th Gen Intel® Core™ i9-13900HX × 32
Ram- 32 GB
IGPU-Intel® Graphics (RPL-S)
Dgpu-NVIDIA GeForce RTX™ 4070 Laptop GPU
Was this page helpful?