How to setup hybrid GPU with Nvidia?

We don’t ship the distribution with the closed nvidia driver pre-installed. Adding non-free was the correct step.

dnf search nvidia-prime
Updating and loading repositories:
Repositories loaded.
Matched fields: name (exact)
 nvidia-prime.noarch: NVIDIA Prime Render Offload utilities

sudo dnf in nvidia-prime --refresh