Skip to content

Commit

Permalink
Revert "macs: allow gcing up to 25% of the store"
Browse files Browse the repository at this point in the history
This reverts commit eefbd1a.
  • Loading branch information
mweinelt committed Dec 19, 2024
1 parent 63ea54b commit a00f52f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions macs/nix-darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ in
automatic = true;
user = "root";
interval = {
# hourly at the 15th minute
Minute = 15;
};
options =
let
freePercentage = 0.25; # 25% free
gbFree = 100;
in
"--max-freed $(df -k /nix/store | awk 'NR==2 {printf \"%.0f\n\", $2 * 1024 * ${toString freePercentage}}')";
"--max-freed $((${toString gbFree} * 1024**3 - 1024 * $(df -P -k /nix/store | tail -n 1 | awk '{ print $4 }')))";
};
};

Expand Down

0 comments on commit a00f52f

Please sign in to comment.