mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 17:58:30 +02:00
chore: justfile - gc - delete old than 7 days
This commit is contained in:
4
Justfile
4
Justfile
@@ -55,13 +55,13 @@ clean:
|
|||||||
gc:
|
gc:
|
||||||
# garbage collect all unused nix store entries
|
# 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
|
# 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')]
|
[group('nix')]
|
||||||
gc-home:
|
gc-home:
|
||||||
# garbage collect all unused nix store entries(for the user - home-manager on nix-darwin)
|
# garbage collect all unused nix store entries(for the user - home-manager on nix-darwin)
|
||||||
# https://github.com/LnL7/nix-darwin/issues/237
|
# 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
|
# Enter a shell session which has all the necessary tools for this flake
|
||||||
[linux]
|
[linux]
|
||||||
|
|||||||
Reference in New Issue
Block a user