nixpkgs/nixos/modules/services
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
..
admin utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
amqp activemq: add type to configurationDir (#110450) 2021-01-22 11:11:05 +01:00
audio Merge pull request #112295 from thelegy/snapserver-fix-buffer-options 2021-02-07 17:10:34 +01:00
backup Merge pull request #111422 from helsinki-systems/mysqlBackup 2021-02-01 12:39:53 +01:00
cluster Merge pull request #111153 from helsinki-systems/hadoop 2021-02-02 14:14:41 +01:00
computing treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
continuous-integration Improve todo 2021-02-10 10:36:00 +01:00
databases treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
desktops nixos/evolution: enable gnome-keyring 2021-01-20 19:51:32 +01:00
development Revert "nixos/hoogle: add type" 2021-02-01 17:39:08 +01:00
editors treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
games nixos/freeciv: init 2021-01-26 12:33:59 +01:00
hardware Merge pull request #97972 from mvnetbiz/power-profiles-daemon 2021-02-09 01:41:04 +01:00
logging treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
mail nixos/postfix: add types (#111426) 2021-01-31 13:52:46 +01:00
misc Merge pull request #104003 from felschr/feat/etebase-server 2021-02-05 21:37:34 +00:00
monitoring nixos/prometheus-flow-exporter: init module 2021-02-10 14:29:05 +01:00
network-filesystems Merge pull request #111455 from helsinki-systems/yandex 2021-01-31 15:25:10 +01:00
networking Merge pull request #112335 from lovesegfault/firefox-no-flash 2021-02-09 01:35:24 +00:00
printing nixos/printing: make access to web-interface configurable 2020-04-25 19:48:34 +02:00
scheduling nixos/marathon: remove module 2020-08-15 16:59:58 +02:00
search nixos/elasticsearch-curator: add type 2021-01-27 11:50:19 -08:00
security nixos/oauth2_proxy_nginx: specify hostname in X-Auth-Request-Redirect 2021-02-08 15:28:52 +03:00
system treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
torrent nixos/deluge: add type 2021-01-28 14:30:23 -08:00
ttys nixos/getty: add services.getty.loginOptions 2021-01-08 13:55:25 +00:00
video epgstation: 1.7.4 -> 1.7.5 2020-10-21 00:05:48 +09:00
wayland nixos/cage: supply pamEnvironment 2020-08-27 10:11:45 -05:00
web-apps Merge pull request #112013 from Ma27/nextcloud-file-check 2021-02-06 21:56:03 +01:00
web-servers nixos/httpd: fix lua paths 2021-02-11 11:56:06 +01:00
x11 Merge pull request #111312 from fdietze/patch-2 2021-02-09 20:13:03 -05:00