small nix update

This commit is contained in:
arnaucube
2024-07-08 16:16:25 +02:00
parent f2eea2c4e4
commit 685ccc5eff
3 changed files with 68 additions and 52 deletions

12
nixos/README.md Normal file
View 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
```