Torsocks not working

I enabled these options

services.tor.enable = true;
services.tor.torsocks.enable = true;

but apparently they are not enough because torsocks doesn’t work. I then enabled

services.tor.torsocks.server = "127.0.0.1:9050";
services.tor.client.enable = true;

(I’m not sure what services.tor.client.enable does actually) and now it kind of works, sometimes, depending on the application.

The wiki is not clear of what the correct way to enable tor and torsocks is. Can somebody help?