nixos/lighttpd: support new authentication modules

authored by Brecht Savelkoul and committed by Bjørn Forsman 8a585fd5 baa04706

+13 -1
+13 -1
nixos/modules/services/web-servers/lighttpd/default.nix
··· 38 38 "mod_rrdtool" 39 39 "mod_accesslog" 40 40 # Remaining list of modules, order assumed to be unimportant. 41 + "mod_authn_dbi" 41 42 "mod_authn_file" 42 43 "mod_authn_gssapi" 43 44 "mod_authn_ldap" 44 45 "mod_authn_mysql" 46 + "mod_authn_pam" 47 + "mod_authn_sasl" 45 48 "mod_cml" 46 49 "mod_deflate" 47 50 "mod_evasive" ··· 129 132 type = types.bool; 130 133 description = '' 131 134 Enable the lighttpd web server. 135 + ''; 136 + }; 137 + 138 + package = mkOption { 139 + default = pkgs.lighttpd; 140 + defaultText = "pkgs.lighttpd"; 141 + type = types.package; 142 + description = '' 143 + lighttpd package to use. 132 144 ''; 133 145 }; 134 146 ··· 240 252 description = "Lighttpd Web Server"; 241 253 after = [ "network.target" ]; 242 254 wantedBy = [ "multi-user.target" ]; 243 - serviceConfig.ExecStart = "${pkgs.lighttpd}/sbin/lighttpd -D -f ${configFile}"; 255 + serviceConfig.ExecStart = "${cfg.package}/sbin/lighttpd -D -f ${configFile}"; 244 256 # SIGINT => graceful shutdown 245 257 serviceConfig.KillSignal = "SIGINT"; 246 258 };