Garbage collect without the aggressive option

This commit is contained in:
coolneng 2022-02-14 23:54:33 +01:00
parent 68daf57cae
commit ff3d88746a
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 3 additions and 1 deletions

View File

@ -85,7 +85,9 @@ in {
description = "Garbage collect git repositories"; description = "Garbage collect git repositories";
path = [ git fd ]; path = [ git fd ];
script = '' script = ''
${pkgs.fd}/bin/fd -g -H --type directory '.git' /home/coolneng --exec git -C '{}' gc --aggressive ${pkgs.fd}/bin/fd -g -H --type directory '.git' /home/coolneng/Documents --exec git -C '{}' gc
${pkgs.fd}/bin/fd -g -H --type directory '.git' /home/coolneng/Projects --exec git -C '{}' gc
${pkgs.fd}/bin/fd -g -H --type directory '.git' /home/coolneng/Repos --exec git -C '{}' gc
''; '';
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
startAt = "*-*-13 17:00:00"; startAt = "*-*-13 17:00:00";