From 5a565f155f011d7ffa1570d79ea52d39b8f245bf Mon Sep 17 00:00:00 2001 From: alsaiduq-lab Date: Sat, 15 Mar 2025 04:59:37 -0600 Subject: [PATCH] because i keep forgetting --- manual-cleanup.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 manual-cleanup.txt diff --git a/manual-cleanup.txt b/manual-cleanup.txt new file mode 100644 index 0000000..1f3c821 --- /dev/null +++ b/manual-cleanup.txt @@ -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