Opencl on nixos not visible in xmrig

Hello, I am trying to run xmrig with my amd gpu along my cpu, but I have no luck making the program see the opencl.
I constantly keep on getting this warning:

* OPENCL       disabled (failed to load OpenCL runtime)

I am new to this, so maybe issue is in this part of the config.json

"opencl": {
  "enabled": true,
  "cache": true,
  "loader": null,
  "platform": "AMD",
  "adl": true
},

Here is my flake I use for my nixos setup: GitHub - Morswin/my-flakes
(please look at the configuration.nix file, because it’s where I tried to write it in.)
I’d really want to see it working, but I am very lost.
If I missed something I was supposed to put in there, please let me know.

Have you tried this yet?

hardware = {
    graphics.extraPackages = with pkgs; [
      intel-compute-runtime # OpenCL
      intel-media-driver # For modern Intel iGPUs 6th Gen or Newer
    ];
  };

I have AMD gpu, not Intel one. Am I supposed to add Intel packages nonetheless?