8 cfg = config.services.gitweb;
13 options.services.gitweb = {
15 projectroot = lib.mkOption {
17 type = lib.types.path;
19 Path to git projects (bare repositories) that should be served by
20 gitweb. Must not end with a slash.
24 extraConfig = lib.mkOption {
26 type = lib.types.lines;
28 Verbatim configuration text appended to the generated gitweb.conf file.
31 $feature{'highlight'}{'default'} = [1];
32 $feature{'ctags'}{'default'} = [1];
33 $feature{'avatar'}{'default'} = ['gravatar'];
37 gitwebTheme = lib.mkOption {
39 type = lib.types.bool;
41 Use an alternative theme for gitweb, strongly inspired by GitHub.
45 gitwebConfigFile = lib.mkOption {
46 default = pkgs.writeText "gitweb.conf" ''
47 # path to git projects (<project>.git)
48 $projectroot = "${cfg.projectroot}";
49 $highlight_bin = "${pkgs.highlight}/bin/highlight";
52 defaultText = lib.literalMD "generated config file";
53 type = lib.types.path;
60 meta.maintainers = [ ];