I’m running a setup with a framework laptop and a razer core x egpu with an amd card.
I used to use a nvidia card where I simply told prime to use the egpu while pointing at the right pcie and that was that but I cannot seem figure out how to get NixOS to use the amd card (so far I have simply setup the amd gpu as if it wasnt external). The fans start spinning when I expect them to (when running games mostly) but based on what games crash and the performance in the ones that do run the games dont seem to be using the card and I am lost as to how to make them use it.
I see I will see what I can get working and share if I succeed or not. I’d say I’m still a nixnewbie while I do have a nice flake configuration and my homeserver running nixos which some services on it it seems there is still allot to learn which is fun
Using an AMD card but with the rendering done on the laptop screen, you need something like virtualGL.
If it was an NVIDIA card, you could use PRIME rendering which basically just requires a few environment variables to be set to make it work when working as a discrete card, unfortunately AMD doesn’t offer this
If you connect a screen to the card output, it should just works when rendering on that screen.