From 3d48da72a99252580db03bf0df4d02c095a46a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 2 Jun 2013 19:26:55 +0200 Subject: [PATCH] lighttpd: gitweb: add extraConfig option So that we can append custom configuration text to the end of the generated gitweb.conf file. --- modules/services/web-servers/lighttpd/gitweb.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/services/web-servers/lighttpd/gitweb.nix b/modules/services/web-servers/lighttpd/gitweb.nix index 88c63064a047..3c710e5b09ee 100644 --- a/modules/services/web-servers/lighttpd/gitweb.nix +++ b/modules/services/web-servers/lighttpd/gitweb.nix @@ -7,7 +7,9 @@ let gitwebConfigFile = pkgs.writeText "gitweb.conf" '' # path to git projects (.git) $projectroot = "${cfg.projectroot}"; + ${cfg.extraConfig} ''; + in { @@ -30,6 +32,14 @@ in ''; }; + extraConfig = mkOption { + default = ""; + type = types.uniq types.string; + description = '' + Verbatim configuration text appended to the generated gitweb.conf file. + ''; + }; + }; config = mkIf cfg.enable {