From ff3d88746a8da397e529d838dc8fa54fa9741725 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 14 Feb 2022 23:54:33 +0100 Subject: [PATCH] Garbage collect without the aggressive option --- modules/periodic.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/periodic.nix b/modules/periodic.nix index de103a8..4d03038 100644 --- a/modules/periodic.nix +++ b/modules/periodic.nix @@ -85,7 +85,9 @@ in { description = "Garbage collect git repositories"; path = [ git fd ]; 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"; startAt = "*-*-13 17:00:00";