nixos: add collectd module

What is the point of the conditional chown? With PermissionsStartOnly = true, pre/post start/stop is always run as root, AFAIK.

Also, I personally prefer explicit chmod over mkdir -m, because chmod is deterministic and mkdir -m isn't. (mkdir -m only applies permissions if the directory gets created by it, it doesn't fixup wrong permissions on existing directories.)