Storage optimization: Difference between revisions

Himura (talk | contribs)
No edit summary
Himura (talk | contribs)
revert changes (apparently, min-free/max-free id deprecated)
Line 149: Line 149:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
nix.settings = {
nix.extraOptions = ''
  min-free = (100 * 1024 * 1024);
  min-free = ${toString (100 * 1024 * 1024)}
  max-free = (1024 * 1024 * 1024);
  max-free = ${toString (1024 * 1024 * 1024)}
};
'';
</syntaxhighlight>
</syntaxhighlight>
This is particularly useful when the store is on its own partition, see [[#Moving_the_store|below]].
This is particularly useful when the store is on its own partition, see [[#Moving_the_store|below]].