about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/services/gerrit/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/services/gerrit/default.nix b/modules/services/gerrit/default.nix
index 9c915e3..46a8bf6 100644
--- a/modules/services/gerrit/default.nix
+++ b/modules/services/gerrit/default.nix
@@ -1,5 +1,11 @@
 { config, pkgs, lib, ... }:
-let cfg = config.my.services.gerrit;
+let
+  cfg = config.my.services.gerrit;
+  oauth = pkgs.fetchurl {
+    url =
+      "https://github.com/davido/gerrit-oauth-provider/releases/download/v3.5.1/gerrit-oauth-provider.jar";
+    sha256 = "312dc494c454ac15f89a289f95ea4c11344add26804aaa6a3b79d49fd92adc69";
+  };
 in {
   options.my.services.gerrit = with lib; {
     enable = mkEnableOption "gerrit git server";
@@ -18,7 +24,7 @@ in {
       builtinPlugins = [ "download-commands" "hooks" ];
       jvmHeapLimit = "4g";
 
-      plugins = [ owners oauth ];
+      plugins = [ oauth ];
 
       settings = {
         core.packedGitLimit = "100m";