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 +}