about summary refs log tree commit diff
path: root/ops/nixos/modules/monorepo-gerrit.nix
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-06-07T18·30+0100
committerVincent Ambo <tazjin@google.com>2020-06-11T21·13+0000
commitafe0841e9d696d3ac8ff447909c416c48ba90836 (patch)
tree4c48e3ca4313d3ddcb56f5327924e9843544a7a5 /ops/nixos/modules/monorepo-gerrit.nix
parentb7766431f480ebe0757c0d70101e99f5f6a5d6e5 (diff)
feat(ops/nixos): Add module for configuring Gerrit for the repo r/897
Diffstat (limited to 'ops/nixos/modules/monorepo-gerrit.nix')
-rw-r--r--ops/nixos/modules/monorepo-gerrit.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/ops/nixos/modules/monorepo-gerrit.nix b/ops/nixos/modules/monorepo-gerrit.nix
new file mode 100644
index 000000000000..2b8e5e773852
--- /dev/null
+++ b/ops/nixos/modules/monorepo-gerrit.nix
@@ -0,0 +1,16 @@
+# Gerrit configuration for the TVL monorepo
+{ pkgs, config, lib, ... }:
+
+{
+  services.gerrit = {
+    enable = true;
+    listenAddress = "[::]:4778"; # 4778 - grrt
+    serverId = "4fdfa107-4df9-4596-8e0a-1d2bbdd96e36";
+    settings = {
+      core.packedGitLimit = "100m";
+      log.jsonLogging = true;
+      log.textLogging = false;
+      # TODO: gitweb config
+    };
+  };
+}