From 86ec8c1b9408e4b59d2332913a9678e24ec186ad Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 20 Dec 2020 17:55:38 +0100 Subject: fix(whitby): Disable git's gc.autoDetach feature This feature can cause object removal to happen while the git folder is in use in Buildkite, causing CI to fail semi-reegularly. Change-Id: Ide1a9b2f1761be029e97a058c1983b4cff5e27bf Reviewed-on: https://cl.tvl.fyi/c/depot/+/2285 Tested-by: BuildkiteCI Reviewed-by: multi --- ops/nixos/whitby/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ops/nixos/whitby/default.nix') diff --git a/ops/nixos/whitby/default.nix b/ops/nixos/whitby/default.nix index b9f0b48122..c54a17b474 100644 --- a/ops/nixos/whitby/default.nix +++ b/ops/nixos/whitby/default.nix @@ -147,6 +147,12 @@ in lib.fix(self: { ''; }; + # Disable background git gc system-wide, as it has a tendency to break CI. + environment.etc."gitconfig".source = depot.third_party.writeText "gitconfig" '' + [gc] + autoDetach = false + ''; + time.timeZone = "UTC"; nix = { -- cgit 1.4.1