diff options
author | Franck Cuny <franck@fcuny.net> | 2022-05-26 17:58:11 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-05-26 17:58:11 -0700 |
commit | ca22bc04be1d1e782d6264538b1293e953c2c5d2 (patch) | |
tree | 8d9198ba83fa5b4eff98a978b9403f6aa3c77be9 /modules | |
parent | fix(gerrit): settings where in wrong place (diff) | |
download | world-ca22bc04be1d1e782d6264538b1293e953c2c5d2.tar.gz |
fix(gerrit): install the plugin for oauth
Change-Id: I3e4a215b47a5a368210b268fa170aa2dddab721f
Diffstat (limited to 'modules')
-rw-r--r-- | modules/services/gerrit/default.nix | 10 |
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"; |