Enabling iio-sensor-proxy

I use KDE and not Gnome, but there all it takes is setting the option you mention:

hardware.sensor.iio.enable = true;

Adding it to systemPackages doesn’t do anything else but give you the detect bin (and the other binaries) in your path.