Boinc GPU dynamic library installed by configuration.nix

I used nix-env to install boinc and in order to use the GPU it will look for libcuda.so libcudart.so libcufft.so in /usr/lib

These are installed with the nvidia-x11 option in configuration.nix

How does one help boinc look for these during runtime?