From b0f0b1bc6b77d8a88085e5d73191353baf3e2b14 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 26 May 2022 17:57:28 -0700 Subject: fix(gerrit): settings where in wrong place Change-Id: I449f9032e32911fa33c26ec41faadb4f8acc8b1f --- modules/services/gerrit/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'modules/services/gerrit') 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 = { -- cgit 1.4.1