From 58225d79783c7fdb4de70efaec414129111c2e78 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 29 Jun 2025 15:16:29 +0800 Subject: [PATCH] feat: justfile - clean --- Justfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Justfile b/Justfile index 0992c69c..e99e84e5 100644 --- a/Justfile +++ b/Justfile @@ -48,7 +48,10 @@ repl: # on darwin, you may need to switch to root user to run this command [group('nix')] clean: + # Wipe out NixOS's history sudo nix profile wipe-history --profile /nix/var/nix/profiles/system --older-than 7d + # Wipe out home-manager's history + nix profile wipe-history --profile $"($env.XDG_STATE_HOME)/nix/profiles/home-manager" --older-than 7d # Garbage collect all unused nix store entries [group('nix')]