diff options
author | Luke Granger-Brown <git@lukegb.com> | 2021-04-02T12·18+0000 |
---|---|---|
committer | lukegb <lukegb@tvl.fyi> | 2021-04-02T18·00+0000 |
commit | b35e358eb5841b62caa8408ce2dbee105bf8d9c8 (patch) | |
tree | b8d00a42560ee0567bb663c8fd65b5dd7d796e83 /ops/nixos/monorepo-gerrit.nix | |
parent | 999f98436cf854d360269368f61a498e506167a4 (diff) |
refactor(ops/nixos): migrate to depot module arg r/2407
Previously the depot argument was provided as config.depot, but the "new way" of doing things (which is more like the args list provided in the rest of the depot) is to provide this as the "depot" NixOS module argument instead. Change-Id: Ib48b1c7c1bdff9c1eb0618c6cbacc22b651f5f98 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2763 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'ops/nixos/monorepo-gerrit.nix')
-rw-r--r-- | ops/nixos/monorepo-gerrit.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ops/nixos/monorepo-gerrit.nix b/ops/nixos/monorepo-gerrit.nix index 327ff633cbb6..e9635879435e 100644 --- a/ops/nixos/monorepo-gerrit.nix +++ b/ops/nixos/monorepo-gerrit.nix @@ -1,11 +1,11 @@ # Gerrit configuration for the TVL monorepo -{ pkgs, config, lib, ... }: +{ depot, pkgs, config, lib, ... }: let cfg = config.services.gerrit; gerritHooks = pkgs.runCommandNoCC "gerrit-hooks" {} '' mkdir -p $out - ln -s ${config.depot.ops.besadii}/bin/besadii $out/ref-updated + ln -s ${depot.ops.besadii}/bin/besadii $out/ref-updated ''; in { services.gerrit = { @@ -17,12 +17,12 @@ in { "hooks" ]; - plugins = with config.depot.third_party.gerrit_plugins; [ + plugins = with depot.third_party.gerrit_plugins; [ checks owners ]; - package = config.depot.third_party.gerrit; + package = depot.third_party.gerrit; jvmHeapLimit = "4g"; |