home/git: make it possible to skip maintenance timer per repo
Evaluate machine configurations / eval (xps16) (push) Successful in 2m37s
Evaluate machine configurations / eval (tsuki) (push) Successful in 2m53s
Evaluate machine configurations / eval (kasei) (push) Successful in 3m50s

This commit is contained in:
2026-06-06 18:51:37 +09:00
parent 4eab4d8a03
commit 4f662737e3
+3 -1
View File
@@ -303,7 +303,9 @@ lib.mkIf cfg.enable {
echo "[maintenance]"
for repoLocation in ${repoDirs}; do
for repo in "$repoLocation"/*/.git; do
echo "repo = $('${pkgs.coreutils}/bin/realpath' "''${repo%"/.git"}")"
if [ "$(git config get -f "$repo/config" maintenance.skip)" != true ]; then
echo "repo = $('${pkgs.coreutils}/bin/realpath' "''${repo%"/.git"}")"
fi
done
done
} > "$1"