I need help with my Laptop's Hardware (amd + nvidia + External display)

Hi guys, I am not new to Linux but I am definitely new to Nixos. I have started learning about it recently and I am loving NixOS already <3
I want some advice guys.
I have my Laptop with following specs

  • Ryzen 7 3800H processor with onboard gpu
    which is: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev c1)
  • External GPU: NVIDIA Corporation TU117M [GeForce GTX 1650 Mobile / Max-Q] (rev a1)
  • Samsung G4 Odyssey display (my dev work involves multi screen)

I need some article or link to understand how to make these GPU’s and External display work side by side in harmony without giving undesired output such as black screen, flickering issues, etc. I tried following guides on Nix wiki regarding Prime and Offloading but none seems to help.

I did it! Thanks guys, you can now close the thread. Nix os wiki is awesome <3