From 9792ef3711b1048b1d76ae200a938b3aaf988e9e Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Mon, 24 Jul 2023 21:20:01 +0800 Subject: [PATCH] feat: add `delete-old` and `gc` scripts --- justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/justfile b/justfile index 933b6a0..8b41b1f 100644 --- a/justfile +++ b/justfile @@ -1,2 +1,6 @@ switch: darwin-rebuild switch --flake . --show-trace +delete-old: + sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old +gc: + nix store gc