Storage optimization: Difference between revisions
m propose merge with Nix store |
Cartwatson (talk | contribs) m rm deprecated link to options: min-free, max-free. Replaced with link to `nix.extraOptions` with correct template |
||
| Line 146: | Line 146: | ||
This can result in redownloads (tarballs fetched with <code>import (builtins.fetchTarball ...)</code> for example are not referenced anywhere and removed on GC), but it frees you from runnning GC manually. | This can result in redownloads (tarballs fetched with <code>import (builtins.fetchTarball ...)</code> for example are not referenced anywhere and removed on GC), but it frees you from runnning GC manually. | ||
It is also possible to automatically run garbage collection whenever there is not enough space left.<ref group="cf.">{{ | It is also possible to automatically run garbage collection whenever there is not enough space left.<ref group="cf.">{{Nixos:option|nix.extraOptions}}: min-free and max-free</ref> For example, to free up to 1GiB whenever there is less than 100MiB left: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||