about summary refs log tree commit diff
path: root/users/sterni/machines/ingeborg/http/code.sterni.lv.nix
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2024-11-15T12·36+0100
committerclbot <clbot@tvl.fyi>2024-11-15T14·53+0000
commite6d0e95cc458db347728f063b174af68a1ca5fd7 (patch)
tree81baf277eab4be5234c129339c9bdbec5da218e9 /users/sterni/machines/ingeborg/http/code.sterni.lv.nix
parentb72262ca3d66336b8995f9725bcfa468ee317f12 (diff)
fix(sterni/code.sterni.lv): gc after mirroring repositories r/8929
Repositories (especially nixpkgs) WILL grow to ridiculous sizes
otherwise, killing cgit performance in the process.

Change-Id: I3bef3e5dc5a61152e89fd53e31f14e78193a4888
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12793
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'users/sterni/machines/ingeborg/http/code.sterni.lv.nix')
-rw-r--r--users/sterni/machines/ingeborg/http/code.sterni.lv.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix
index 24ce218d48d6..7a6f82395a97 100644
--- a/users/sterni/machines/ingeborg/http/code.sterni.lv.nix
+++ b/users/sterni/machines/ingeborg/http/code.sterni.lv.nix
@@ -260,6 +260,9 @@ in
                   cd "${path}"
 
                   git fetch "${repo.upstream}" '+refs/*:refs/*' --prune
+
+                  # no auto gc here and we're not pruning for nothing…
+                  git gc
                 '';
 
               serviceConfig = {