Added phoenix gc and updated readme for flakes

This commit is contained in:
Emmet 2023-05-19 21:03:38 -05:00
parent 0f2d420e04
commit fe59fcdaef
2 changed files with 22 additions and 3 deletions

View file

@ -26,6 +26,14 @@ let
pushd ''+myDotfilesDir+'';
nix flake update;
popd;
elif [ "$1" = "gc" ]; then
if [ "$2" = "full" ]; then
sudo nix-collect-garbage --delete-old;
elif [ "$2" ]; then
sudo nix-collect-garbage --delete-older-than $2;
else
sudo nix-collect-garbage --delete-older-than 30d;
fi
fi
'';
in