nixpkgs/nixos/modules/services/web-servers
Daniel Nagy 7c121e60c5
nixos/httpd: fix lua paths
Account for the fact that, when creating a lua package without the
"withPackages" helper, we dont get an extra "lua" attribute in the
package.

Therefore we need to distinguish between the "withPackages" case and the
direct ( or "empty" ) lua package.

For example with this nixos config:

```nix
{
  services.httpd = {
      enable = true;
      package = pkgs.apacheHttpd.override {
        luaSupport = true;
        lua5 = pkgs.lua5_3.withPackages (ps: with ps; [ luafilesystem ] );
      };
    };
}
```

Here we say that we want to have apache to use a lua, packaged with the
`luafilesystem` module so that we can `require` that in scripts to
render http responses. There, the set that gets assigned to `lua5 ` does
not have a `luaversion` attribute, rather it has a `lua` attribute
wherein lies a `luaversion` attribute. If we dont package additional
modules, then we dont have that `lua` attribute in between and rather
directly have to use `luaversion` directly.
2021-02-11 11:56:06 +01:00
..
apache-httpd nixos/httpd: fix lua paths 2021-02-11 11:56:06 +01:00
hitch
jboss nixos/module/jboss: Add types to options (#110451) 2021-01-22 11:11:40 +01:00
lighttpd treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
nginx Merge pull request #111302 from fooker/pr/nginx-default-type 2021-02-09 01:44:47 +01:00
phpfpm nixos/phpfpm: remove unnecessary sendmail configuration 2020-10-02 09:11:14 +02:00
unit nixos/unit: add stateDir and logDir types 2021-01-31 13:41:53 +01:00
varnish
caddy.nix Merge pull request #97618 from lf-/fix-bad-caddy-configs 2021-01-29 10:08:46 -05:00
darkhttpd.nix
fcgiwrap.nix
hydron.nix
mighttpd2.nix
minio.nix
molly-brown.nix nixos/molly-brown: refactor module to use a TOML generator 2020-09-28 14:38:31 +02:00
shellinabox.nix nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
tomcat.nix nixos/tomcat: add extraGroups type (#110486) 2021-01-22 16:22:06 +01:00
traefik.nix nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
ttyd.nix
uwsgi.nix nixos/uwsgi: set up the default runtime directory 2021-01-25 14:05:39 +01:00
zope2.nix