From 8e85429c8f39472028e1468ec85a3e9a208fa02f Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Thu, 18 Dec 2025 17:59:04 -0800 Subject: [PATCH] gc --- users/tao/nushell/extras/nix.nu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/users/tao/nushell/extras/nix.nu b/users/tao/nushell/extras/nix.nu index f5e71e7..ffbc1ac 100644 --- a/users/tao/nushell/extras/nix.nu +++ b/users/tao/nushell/extras/nix.nu @@ -75,5 +75,9 @@ def bump [...rest] { alias rb = rebuild boot alias rs = rebuild switch -alias gc = nh clean all + +def gc [] { + sudo nix-collect-garbage -d + snapper clear +}