about summary refs log tree commit diff
path: root/ops/nixos/whitby
diff options
context:
space:
mode:
Diffstat (limited to 'ops/nixos/whitby')
-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 b9f0b48122f2..c54a17b47449 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 = {