Added basic clean target
This commit is contained in:
parent
70c137c946
commit
190f561fd6
4
makefile
4
makefile
|
@ -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
|
||||||
|
|
Reference in New Issue
Block a user