about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ops/nixos/whitby/default.nix6
1 files changed, 6 insertions, 0 deletions
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 = {