because i keep forgetting
This commit is contained in:
parent
eed2bf8a4a
commit
5a565f155f
1 changed files with 12 additions and 0 deletions
12
manual-cleanup.txt
Normal file
12
manual-cleanup.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Commands for cleaning up Nix system because I'm tired of looking these up:
|
||||||
|
|
||||||
|
nix-env --list-generations
|
||||||
|
|
||||||
|
# Perform garbage collection by deleting old derivations
|
||||||
|
nix-collect-garbage --delete-old
|
||||||
|
|
||||||
|
# recommeneded to sometimes run as sudo to collect additional garbage
|
||||||
|
sudo nix-collect-garbage -d
|
||||||
|
|
||||||
|
# As a separation of concerns - you will need to run this command to clean out boot
|
||||||
|
sudo /run/current-system/bin/switch-to-configuration boot
|
||||||
Loading…
Add table
Add a link
Reference in a new issue