mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 04:26:41 +01:00
small nix update
This commit is contained in:
12
nixos/README.md
Normal file
12
nixos/README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
from time to time run the following commands to remove stuff from old generations
|
||||
```
|
||||
# list old generations
|
||||
sudo nix-env --list-generations --profile /nix/var/nix/profiles/system
|
||||
|
||||
# remove old generations
|
||||
sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations 9 10 11 12 13 X...
|
||||
|
||||
|
||||
# to remove old programs
|
||||
nix-collect-garbage --delete-old
|
||||
```
|
||||
Reference in New Issue
Block a user