lighttpd: gitweb: add extraConfig option

So that we can append custom configuration text to the end of the
generated gitweb.conf file.
This commit is contained in:
Bjørn Forsman 2013-06-02 19:26:55 +02:00
parent 08eba4c114
commit 3d48da72a9

View File

@ -7,7 +7,9 @@ let
gitwebConfigFile = pkgs.writeText "gitweb.conf" '' gitwebConfigFile = pkgs.writeText "gitweb.conf" ''
# path to git projects (<project>.git) # path to git projects (<project>.git)
$projectroot = "${cfg.projectroot}"; $projectroot = "${cfg.projectroot}";
${cfg.extraConfig}
''; '';
in 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 { config = mkIf cfg.enable {