nixpkgs-suyu/nixos/modules
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
..
config treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
hardware Merge pull request #111996 from rnhmjoj/i2c 2021-02-06 18:22:34 +01:00
i18n/input-method fcitx5: update doc 2021-01-24 02:10:23 +01:00
installer lib: Clean up how linux and gcc config is specified 2021-01-23 10:01:28 -05:00
misc nixos/dysnomia nixos/disnix: Drop modules 2021-01-27 11:27:09 +01:00
profiles qemu-guest: remove security.rngd setting 2021-01-27 18:27:34 +01:00
programs nixos/venus: Dropping module 2021-02-05 22:53:23 -08:00
security Merge pull request #108819 from SuperSandro2000/nginx-module 2021-01-30 21:46:35 +01:00
services nixos/httpd: fix lua paths 2021-02-11 11:56:06 +01:00
system Merge pull request #111452 from urbas/linuxPackages_rpi3-missing-ahci-module 2021-02-07 12:33:51 +01:00
tasks zfs: fix invalid package references 2021-02-03 11:45:31 +01:00
testing
virtualisation Merge pull request #111924 from saschagrunert/cri-o-oci-hook 2021-02-06 12:03:44 +01:00
module-list.nix Merge pull request #112335 from lovesegfault/firefox-no-flash 2021-02-09 01:35:24 +00:00
rename.nix nixos.flashpolicyd: drop 2021-02-08 09:38:48 -08:00