xtruder / nix-devcontainer

Swiss army knife container for vscode development environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to clean nix store properly

Rizary opened this issue · comments

Docker desktop maximum storage is 250G. However, we can increase it by using the following step: https://docs.microsoft.com/en-us/windows/wsl/compare-versions#expanding-the-size-of-your-wsl-2-virtual-hard-disk

How do we handle nix storage in this regard? I mean, should we call nix-collect-garbage before we run nix develop?

There are multiple ways to clean I can think of

  • nix-collect-garbage
  • stop devcontainer, delete nix volume associated with devcontainer and rebuild

What I usually do is just delete stale nix volumes