Nix : Rename clean to prune.

This commit is contained in:
Dmitry Voronin 2024-02-14 14:03:34 +03:00
parent 177991830f
commit 9e041b8415
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ function nix_update() {
} }
# Free up root space. # Free up root space.
function nix_clean() { function nix_prune() {
nix-collect-garbage -d nix-collect-garbage -d
_is_root && nix-store --gc _is_root && nix-store --gc
} }

View file

@ -268,7 +268,7 @@ Command|Description
`nix_rebuild [HOSTNAME]`|Rebuild system. Optionally force the hostname. `nix_rebuild [HOSTNAME]`|Rebuild system. Optionally force the hostname.
`nix_switch [HOSTNAME]`|Rebuild and switch system. Optionally force the hostname. `nix_switch [HOSTNAME]`|Rebuild and switch system. Optionally force the hostname.
`nix_update`|Update system versions. `nix_update`|Update system versions.
`nix_clean`| Free up root space. `nix_prune`| Free up root space.
`nix_shell [NAME]`|Spawn shell with specified nix environment. Uses flake.nix in current dir by default. `nix_shell [NAME]`|Spawn shell with specified nix environment. Uses flake.nix in current dir by default.
`nix_tmpshell <PACKAGES>`|Spawn nix-shell with specified packages. `nix_tmpshell <PACKAGES>`|Spawn nix-shell with specified packages.