From ca22bc04be1d1e782d6264538b1293e953c2c5d2 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 26 May 2022 17:58:11 -0700 Subject: fix(gerrit): install the plugin for oauth Change-Id: I3e4a215b47a5a368210b268fa170aa2dddab721f --- modules/services/gerrit/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'modules/services/gerrit') 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"; -- cgit 1.4.1