Hi Eike,

I'm actually getting infinite recursion errors when I try to add the
following to my sample servers.nix config:

with import <nixpkgs/lib>;
let
  ...
in
{
  vm01 =
    { config, pkgs, nodes, nginx, nginxModules, ... }:
    nginx.override {
      modules = [
        nginxModules.lua
      ];
    }
    {
      deployment.targetHost = "192.168.1.50";
      ...
    };
    ...
  };
}

Fails with error

..
while evaluating the module argument `nginx' in ":anon-1:anon-1":
infinite recursion encountered, at
/nix/store/yqvarbfxf3594p7p954b4qjdiwmyagm4-nixos-16.09.tar.gz/lib/modules.nix:150:28


On Thu, Apr 27, 2017 at 11:46 AM 4levels <4lev...@gmail.com> wrote:

> Hi Eike,
>
> I found similar info in the release notes for 16.03.
> I'm struggling to get this into my NixOps statements though, but I'm sure
> I'll figure it out ;-)
>
> Thanks for your swift reply!
>
> Kind regards,
>
> Erik
>
> On Thu, Apr 27, 2017 at 11:33 AM Eike <e...@eknet.org> wrote:
>
>>
>> Hallo Erik,
>>
>> I found this in my config files:
>>
>>     { nginx, nginxModules }:
>>
>>     nginx.override {
>>       modules =  [
>>         nginxModules.rtmp
>>         nginxModules.dav
>>         nginxModules.moreheaders
>>     #    nginxModules.lua
>>       ];
>>     }
>>
>> But I don't remember why I commented out the lua module. Maybe it didn't
>> work or I don't need it…. And this is nixos-16.09, so maybe things
>> changed here.
>>
>> Kind regards
>> Eike
>>
>> 4levels <4lev...@gmail.com> writes:
>>
>> > Hi Nix Devs,
>> >
>> > I can see that Nginx can be configured to use the lua module, but I
>> can't
>> > seem to find how to enable this module?
>> >
>> > I'm probably overlooking something obvious here, but I checked all
>> files in
>> > https://github.com/NixOS/nixpkgs/blob/16.09/pkgs/servers/http/nginx
>> and I
>> > just don't see how I can enable this.
>> > https://nixos.org/nixos/options.html#nginx also doesn't enlighten me
>> either
>> > :-(
>> >
>> > Kind regards,
>> >
>> > Erik
>> > _______________________________________________
>> > nix-dev mailing list
>> > nix-dev@lists.science.uu.nl
>> > https://mailman.science.uu.nl/mailman/listinfo/nix-dev
>>
>>
>> --
>> gpg: AD7AC35E
>> finger print: 137F BB0B 1639 D25F DC5D E59C B412 C5F5 AD7A C35E
>>
>
_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to