Added phoenix gc and updated readme for flakes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user