nixos/nginx: add gitweb sub-service

This commit is contained in:
gnidorah
2018-03-29 09:06:54 +03:00
parent 9e6752075a
commit 69a0c9721e
3 changed files with 107 additions and 0 deletions
@@ -7,6 +7,7 @@ let
gitwebConfigFile = pkgs.writeText "gitweb.conf" ''
# path to git projects (<project>.git)
$projectroot = "${cfg.projectroot}";
$highlight_bin = "${pkgs.highlight}/bin/highlight";
${cfg.extraConfig}
'';
@@ -38,6 +39,10 @@ in
description = ''
Verbatim configuration text appended to the generated gitweb.conf file.
'';
example = ''
$feature{'highlight'}{'default'} = [1];
$feature{'ctags'}{'default'} = [1];
'';
};
};