Storage optimization: Difference between revisions

Himura (talk | contribs)
No edit summary
Himura (talk | contribs)
m really sorry for such a messy edits, I wish this wiki to be in git, so that I can edit through merge requests, not directly...
Tags: Manual revert Visual edit
 
(One intermediate revision by the same user not shown)
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]].