Hmm not really true, look into postgresql module...
On Mar 19, 2014 11:05 PM, "Shea Levy" <notifications@github.com> wrote:

> In nixos/modules/services/amqp/rabbitmq.nix:
>
> >        };
> >
> > +      preStart = ''
> > +        mkdir -m 0700 -p ${cfg.dataDir}
>
> I'm pretty sure this won't work as-is with a new install, as preStartwill run as the
> rabbitmq user which won't have permissions to create a directory in
> /var/lib
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/NixOS/nixpkgs/pull/1912/files#r10774035>
> .
>