[Nix-dev] infinite recursion on newer nixpkgs

Daniel Hlynskyi abcz2.uprola at gmail.com
Fri Aug 5 16:57:24 CEST 2016


Perhaps not a direct answer, but why do you use mkIf? If postgresql isn't
enabled, it won't run your script, whatever it is

4 серп. 2016 9:52 пп "Sergey Mironov" <grrwlf at gmail.com> пише:

> Hi.
> I've updated my nixpkgs up to 8983df7 and faced an infinite recursion
> on the following peace of config:
>
>   services = pkgs.lib.mkIf config.services.postgresql.enable {
>     postgresql.initialScript = pkgs.writeText "postgreinit.sql" ''
>       create role grwlf superuser login createdb createrole replication;
>       '';
>   };
>
> It worked with previous versions, what would you recommend me to do?
>
> Regards,
> Sergey
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160805/f09fcfb4/attachment.html>


More information about the nix-dev mailing list