Nix : Add cleanup.
This commit is contained in:
parent
16707bf167
commit
3ba1083d28
|
@ -37,3 +37,9 @@ function nix_update() {
|
|||
function nix_upgrade() {
|
||||
nixos-rebuild switch --upgrade
|
||||
}
|
||||
|
||||
# Free up root space.
|
||||
function nix_clean() {
|
||||
nix-collect-garbage -d
|
||||
[[ "${UID}" = 0 ]] && nix-store --gc
|
||||
}
|
||||
|
|
Reference in a new issue