about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/services/gerrit/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/services/gerrit/default.nix b/modules/services/gerrit/default.nix
index 9db7b46..9c915e3 100644
--- a/modules/services/gerrit/default.nix
+++ b/modules/services/gerrit/default.nix
@@ -39,17 +39,17 @@ in {
 
         download.command = [ "checkout" "cherry_pick" "format_patch" "pull" ];
 
-        # Receiving email is not currently supported.
-        sendemail = { enable = false; };
-      };
+        auth.type = "OAUTH";
 
-      auth.type = "OAUTH";
+        # users can change their emails
+        oauth.allowRegisterNewEmail = true;
 
-      # users can change their emails
-      oauth.allowRegisterNewEmail = true;
+        # use gerrit HTTP password
+        auth.gitBasicAuthPolicy = "HTTP";
 
-      # use gerrit HTTP password
-      auth.gitBasicAuthPolicy = "HTTP";
+        # Receiving email is not currently supported.
+        sendemail = { enable = false; };
+      };
     };
 
     systemd.services.gerrit = {