about summary refs log tree commit diff
path: root/modules/services/gerrit
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-26 17:57:28 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-26 17:57:28 -0700
commitb0f0b1bc6b77d8a88085e5d73191353baf3e2b14 (patch)
tree408242efad359deb45d11779e63fd85fac2d9ba3 /modules/services/gerrit
parentfeat(gerrit): use OAUTH for authentication (diff)
downloadworld-b0f0b1bc6b77d8a88085e5d73191353baf3e2b14.tar.gz
fix(gerrit): settings where in wrong place
Change-Id: I449f9032e32911fa33c26ec41faadb4f8acc8b1f
Diffstat (limited to 'modules/services/gerrit')
-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 = {