diff options
author | Vincent Ambo <mail@tazj.in> | 2020-06-13T02·32+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-06-13T03·16+0000 |
commit | 8735c63e97409f92905f07fcd54dbc7ca3394374 (patch) | |
tree | e8ce8c055c5f8a94800a6529cc7bbfad64662bd3 /ops/nixos/modules | |
parent | 213d637ca9b3944b57bd90025802e5790a710dcf (diff) |
feat(monorepo-gerrit): Enable download-commands plugin r/930
This enables the display of various download commands on change pages, which makes things like checking out refs for review locally easier. Change-Id: I3c29854aa0cf1aa393efb89b7516bbf84e0083d4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/162 Reviewed-by: lukegb <lukegb@tvl.fyi>
Diffstat (limited to 'ops/nixos/modules')
-rw-r--r-- | ops/nixos/modules/monorepo-gerrit.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ops/nixos/modules/monorepo-gerrit.nix b/ops/nixos/modules/monorepo-gerrit.nix index 1e45bb744e74..c4c2cd0f9f8d 100644 --- a/ops/nixos/modules/monorepo-gerrit.nix +++ b/ops/nixos/modules/monorepo-gerrit.nix @@ -7,6 +7,8 @@ in { enable = true; listenAddress = "[::]:4778"; # 4778 - grrt serverId = "4fdfa107-4df9-4596-8e0a-1d2bbdd96e36"; + builtinPlugins = [ "download-commands" ]; + settings = { core.packedGitLimit = "100m"; log.jsonLogging = true; @@ -18,6 +20,13 @@ in { gerrit.canonicalWebUrl = "https://cl.tvl.fyi"; httpd.listenUrl = "proxy-https://${cfg.listenAddress}"; + download.command = [ + "checkout" + "cherry_pick" + "format_patch" + "pull" + ]; + # Configure for cgit. gitweb = { type = "custom"; |