diff options
Diffstat (limited to '')
| -rw-r--r-- | modules/vhack/gi/git-server/module.nix (renamed from modules/by-name/gi/git-server/module.nix) | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/by-name/gi/git-server/module.nix b/modules/vhack/gi/git-server/module.nix index db35897..3e2c848 100644 --- a/modules/by-name/gi/git-server/module.nix +++ b/modules/vhack/gi/git-server/module.nix @@ -8,8 +8,7 @@ cgitCss = import ./css.nix { inherit pkgs; - cgitPkg = - config.services.cgit."${cfg.domain}".package; + cgitPkg = config.services.cgit."${cfg.domain}".package; }; in { options.vhack.git-server = { @@ -84,10 +83,16 @@ in { cgit."${cfg.domain}" = { enable = true; - package = pkgs.cgit-pink; + package = pkgs.cgit; scanPath = "${config.services.gitolite.dataDir}/repositories"; user = "git"; group = "git"; + + # Don't bypass `cgit` when performing a http only clone. + # This is slightly slower, but we don't need to worry about the access + # restrictions also being by-passed. + gitHttpBackend.enable = false; + settings = { branch-sort = "age"; |
