diff options
Diffstat (limited to 'ops/nixos/modules')
-rw-r--r-- | ops/nixos/modules/monorepo-gerrit.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ops/nixos/modules/monorepo-gerrit.nix b/ops/nixos/modules/monorepo-gerrit.nix index f09258a498eb..48e7a28037e9 100644 --- a/ops/nixos/modules/monorepo-gerrit.nix +++ b/ops/nixos/modules/monorepo-gerrit.nix @@ -17,6 +17,20 @@ in { gerrit.canonicalWebUrl = "https://cl.tvl.fyi"; httpd.listenUrl = "proxy-https://${cfg.listenAddress}"; + # Configure for cgit. + gitweb = { + type = "custom"; + url = "https://git.tazj.in"; + project = "/"; + revision = "/commit/?id=\${commit}"; + branch = "/log/?h=\${branch}"; + tag = "/tag/?h=\${tag}"; + roottree = "/tree/?h=\${commit}"; + file = "/tree/\${file}?h=\${commit}"; + filehistory = "/log/\${file}?h=\${branch}"; + linkname = "cgit"; + }; + # Configures integration with the locally running OpenLDAP auth.type = "LDAP"; ldap = { |