Added basic clean target

This commit is contained in:
James Patrick 2022-07-16 18:54:29 -04:00
parent 70c137c946
commit 190f561fd6

View File

@ -19,3 +19,7 @@ upgrade:
sudo nix-channel --update sudo nix-channel --update
nix flake update nix flake update
sudo nixos-rebuild --use-remote-sudo --upgrade-all switch --flake . sudo nixos-rebuild --use-remote-sudo --upgrade-all switch --flake .
clean:
sudo nix-env -p /nix/var/nix/profiles/system --delete-generations +2
sudo nix-collect-garbage --delete-older-than 5d