locate service: allow customisation

Fixes #2961

It'd be great if someone could spend 2 mins eyeing this for any obvious mistakes.

I note that `nixos-option` does not show updated values, I don't know what the deal with that is.
Correct about optionalString and removing that lets us nicely move up the expression a line removing the slash worry all together. I have updated the PR.