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 {