diff options
Diffstat (limited to 'git.nix')
| -rw-r--r-- | git.nix | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -27,7 +27,14 @@ in { scanPath = repoRoot; group = "git"; # so cgit can traverse a non-world-readable repoRoot gitHttpBackend.checkExportOkFiles = true; - settings.strict-export = "git-daemon-export-ok"; + settings = { + strict-export = "git-daemon-export-ok"; + remove-suffix = true; + readme = [ ":README.md" ":README" ":readme.md" ]; + clone-url = "git@${domain}:$CGIT_REPO_URL https://${domain}/$CGIT_REPO_URL"; + source-filter = "${pkgs.cgit}/lib/cgit/filters/syntax-highlighting.py"; + about-filter = "${pkgs.cgit}/lib/cgit/filters/about-formatting.sh"; + }; }; services.nginx.virtualHosts.${domain} = { |