From 8735c63e97409f92905f07fcd54dbc7ca3394374 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 13 Jun 2020 03:32:46 +0100 Subject: feat(monorepo-gerrit): Enable download-commands plugin 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 --- ops/nixos/modules/monorepo-gerrit.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ops/nixos') 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"; -- cgit 1.4.1