1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-03-16 09:02:36 +00:00

Merge pull request #179 from bjornfor/lighttpd-gitweb-improvements

lighttpd: gitweb: add extraConfig option
This commit is contained in:
Evgeny Egorochkin 2013-06-02 14:09:23 -07:00
commit 6ab6eeceb7

View file

@ -7,7 +7,9 @@ let
gitwebConfigFile = pkgs.writeText "gitweb.conf" ''
# path to git projects (<project>.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 {