adjust hydra-gc numbers

for the new ssds
This commit is contained in:
Yureka 2024-08-20 12:08:49 +02:00
parent a72a991863
commit cfc24abfe1

View file

@ -164,8 +164,8 @@ in
script = ''
while : ; do
percent_filled=$(($(stat -f --format="100-(100*%a/%b)" /mnt)))
if [ "$percent_filled" -gt "54" ]; then
${config.nix.package.out}/bin/nix-store --gc --max-freed 50G --store /mnt
if [ "$percent_filled" -gt "85" ]; then
${config.nix.package.out}/bin/nix-store --gc --max-freed 80G --store /mnt
else
break
fi