git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/lighttpd: support new authentication modules
commit8a585fd5c59bebb04434e2b7d0bfac1123b0a919 authorBrecht Savelkoul <brecht.savelkoul@alumni.lse.ac.uk> dateThu 12 Aug 2021, 21:08 (5 years ago) parentbaa0470
1 file changed+13−1
nixos/modules/services/web-servers/lighttpd/default.nix+13−1
nixos/modules/services/web-servers/lighttpd/default.nix+13−1
@@ -38,10 +38,13 @@ let
3838 "mod_rrdtool"
3939 "mod_accesslog"
4040 # Remaining list of modules, order assumed to be unimportant.
41+ "mod_authn_dbi"
4142 "mod_authn_file"
4243 "mod_authn_gssapi"
4344 "mod_authn_ldap"
4445 "mod_authn_mysql"
46+ "mod_authn_pam"
47+ "mod_authn_sasl"
4548 "mod_cml"
4649 "mod_deflate"
4750 "mod_evasive"
@@ -132,6 +135,15 @@ in
132135 '';
133136 };
134137
138+ package = mkOption {
139+ default = pkgs.lighttpd;
140+ defaultText = "pkgs.lighttpd";
141+ type = types.package;
142+ description = ''
143+ lighttpd package to use.
144+ '';
145+ };
146+
135147 port = mkOption {
136148 default = 80;
137149 type = types.port;
@@ -240,7 +252,7 @@ in
240252 description = "Lighttpd Web Server";
241253 after = [ "network.target" ];
242254 wantedBy = [ "multi-user.target" ];
243− serviceConfig.ExecStart = "${pkgs.lighttpd}/sbin/lighttpd -D -f ${configFile}";
255+ serviceConfig.ExecStart = "${cfg.package}/sbin/lighttpd -D -f ${configFile}";
244256 # SIGINT => graceful shutdown
245257 serviceConfig.KillSignal = "SIGINT";
246258 };