mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 19:46:20 +00:00
feat: update gc
This commit is contained in:
20
README.md
20
README.md
@@ -39,6 +39,26 @@ nix flake update
|
|||||||
sudo nixos-rebuild switch --flake .#
|
sudo nixos-rebuild switch --flake .#
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Cleaning your system
|
||||||
|
|
||||||
|
### Find (accidental) folders holding your gc back
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nix-store --gc --print-roots | grep /home
|
||||||
|
```
|
||||||
|
|
||||||
|
### Remove old generations
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nix-collect-garbage -d
|
||||||
|
```
|
||||||
|
|
||||||
|
### Cleanup store
|
||||||
|
|
||||||
|
```sh
|
||||||
|
nix-store --gc
|
||||||
|
```
|
||||||
|
|
||||||
## Usage in your NixOS config
|
## Usage in your NixOS config
|
||||||
|
|
||||||
`flake.nix`
|
`flake.nix`
|
||||||
|
|||||||
Reference in New Issue
Block a user