about summary refs log tree commit diff
path: root/ops/nixos/modules
diff options
context:
space:
mode:
Diffstat (limited to 'ops/nixos/modules')
-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
+    };
+  };
+}