From 8a585fd5c59bebb04434e2b7d0bfac1123b0a919 Mon Sep 17 00:00:00 2001 From: Brecht Savelkoul Date: Thu, 12 Aug 2021 21:08:13 +0200 Subject: nixos/lighttpd: support new authentication modules --- nixos/modules/services/web-servers/lighttpd/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'nixos/modules/services/web-servers/lighttpd/default.nix') diff --git a/nixos/modules/services/web-servers/lighttpd/default.nix b/nixos/modules/services/web-servers/lighttpd/default.nix index 7a691aa7891..05e897c8cc9 100644 --- a/nixos/modules/services/web-servers/lighttpd/default.nix +++ b/nixos/modules/services/web-servers/lighttpd/default.nix @@ -38,10 +38,13 @@ let "mod_rrdtool" "mod_accesslog" # Remaining list of modules, order assumed to be unimportant. + "mod_authn_dbi" "mod_authn_file" "mod_authn_gssapi" "mod_authn_ldap" "mod_authn_mysql" + "mod_authn_pam" + "mod_authn_sasl" "mod_cml" "mod_deflate" "mod_evasive" @@ -132,6 +135,15 @@ in ''; }; + package = mkOption { + default = pkgs.lighttpd; + defaultText = "pkgs.lighttpd"; + type = types.package; + description = '' + lighttpd package to use. + ''; + }; + port = mkOption { default = 80; type = types.port; @@ -240,7 +252,7 @@ in description = "Lighttpd Web Server"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; - serviceConfig.ExecStart = "${pkgs.lighttpd}/sbin/lighttpd -D -f ${configFile}"; + serviceConfig.ExecStart = "${cfg.package}/sbin/lighttpd -D -f ${configFile}"; # SIGINT => graceful shutdown serviceConfig.KillSignal = "SIGINT"; }; -- cgit 1.4.1