From ed89e6263c06f8a1564354974e19c1753ede666b Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 14 Aug 2026 21:59:03 +0200 Subject: [PATCH] git: fix git disable download function --- config/hosts/git/forgejo.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/hosts/git/forgejo.nix b/config/hosts/git/forgejo.nix index 89f83c9..9938832 100644 --- a/config/hosts/git/forgejo.nix +++ b/config/hosts/git/forgejo.nix @@ -60,6 +60,9 @@ repo = { DEFAULT_REPO_UNITS = "repo.code,repo.issues,repo.pulls"; }; + repository = { + DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true; + }; actions = { ENABLED = true; ARTIFACT_RETENTION_DAYS = 30; @@ -84,6 +87,12 @@ REPO_INDEXER_TYPE = "elasticsearch"; REPO_INDEXER_CONN_STR = "http://127.0.0.1:9200"; }; + "cron.archive_cleanup" = { + ENABLED = true; + RUN_AT_START = true; + SCHEDULE = "@every 1h"; + OLDER_THAN = "2h"; + }; }; };