mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-09 06:05:10 +02:00
feat: justfile - gc
This commit is contained in:
@@ -53,13 +53,9 @@ clean:
|
|||||||
# Garbage collect all unused nix store entries
|
# Garbage collect all unused nix store entries
|
||||||
[group('nix')]
|
[group('nix')]
|
||||||
gc:
|
gc:
|
||||||
# garbage collect all unused nix store entries
|
# garbage collect all unused nix store entries(system-wide)
|
||||||
# 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-older-than 7d
|
sudo nix-collect-garbage --delete-older-than 7d
|
||||||
|
# garbage collect all unused nix store entries(for the user - home-manager)
|
||||||
[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
|
# https://github.com/LnL7/nix-darwin/issues/237
|
||||||
nix-collect-garbage --delete-older-than 7d
|
nix-collect-garbage --delete-older-than 7d
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user