diff options
Diffstat (limited to 'modules/services')
-rw-r--r-- | modules/services/gerrit/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/services/gerrit/default.nix b/modules/services/gerrit/default.nix index a3e5e78..0f83165 100644 --- a/modules/services/gerrit/default.nix +++ b/modules/services/gerrit/default.nix @@ -57,6 +57,20 @@ in { download.command = [ "checkout" "cherry_pick" "format_patch" "pull" ]; + # Configure for cgit. + gitweb = { + type = "custom"; + url = "https://git.fcuny.net"; + project = "/\${project}.git"; + 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"; + }; + auth.type = "OAUTH"; # users can change their emails |