diff options
-rw-r--r-- | modules/services/gerrit/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/services/gerrit/default.nix b/modules/services/gerrit/default.nix index df285d3..9db7b46 100644 --- a/modules/services/gerrit/default.nix +++ b/modules/services/gerrit/default.nix @@ -18,6 +18,8 @@ in { builtinPlugins = [ "download-commands" "hooks" ]; jvmHeapLimit = "4g"; + plugins = [ owners oauth ]; + settings = { core.packedGitLimit = "100m"; log.jsonLogging = true; @@ -40,6 +42,14 @@ in { # Receiving email is not currently supported. sendemail = { enable = false; }; }; + + auth.type = "OAUTH"; + + # users can change their emails + oauth.allowRegisterNewEmail = true; + + # use gerrit HTTP password + auth.gitBasicAuthPolicy = "HTTP"; }; systemd.services.gerrit = { |