mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 07:24:10 +01:00
chore: justfile - gc - delete old than 7 days
This commit is contained in:
4
Justfile
4
Justfile
@@ -55,13 +55,13 @@ clean:
|
||||
gc:
|
||||
# garbage collect all unused nix store entries
|
||||
# NOTE: it's a system-wide garbage collection, but it seems won't affect home-manager's gcroot on darwin
|
||||
sudo nix-collect-garbage --delete-old
|
||||
sudo nix-collect-garbage --delete-older-than 7d
|
||||
|
||||
[group('nix')]
|
||||
gc-home:
|
||||
# garbage collect all unused nix store entries(for the user - home-manager on nix-darwin)
|
||||
# https://github.com/LnL7/nix-darwin/issues/237
|
||||
nix-collect-garbage --delete-old
|
||||
nix-collect-garbage --delete-older-than 7d
|
||||
|
||||
# Enter a shell session which has all the necessary tools for this flake
|
||||
[linux]
|
||||
|
||||
Reference in New Issue
Block a user