diff options
author | Franck Cuny <franck@fcuny.net> | 2022-05-26 17:57:28 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-05-26 17:57:28 -0700 |
commit | b0f0b1bc6b77d8a88085e5d73191353baf3e2b14 (patch) | |
tree | 408242efad359deb45d11779e63fd85fac2d9ba3 /modules | |
parent | feat(gerrit): use OAUTH for authentication (diff) | |
download | world-b0f0b1bc6b77d8a88085e5d73191353baf3e2b14.tar.gz |
fix(gerrit): settings where in wrong place
Change-Id: I449f9032e32911fa33c26ec41faadb4f8acc8b1f
Diffstat (limited to '')
-rw-r--r-- | modules/services/gerrit/default.nix | 16 |
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 = { |