Storage optimization: Difference between revisions
imported>Riley-martine |
imported>Xav-ie m Add reasoning for why auto-optimise-store is not on automatically and what you can do instead |
||
Line 11: | Line 11: | ||
{{Tip|This option only applies to new files: so we recommend manually optimising your nix store in addition to this option.}} | {{Tip|This option only applies to new files: so we recommend manually optimising your nix store in addition to this option.}} | ||
The reason this option is not default to true automatically is discussed here: https://github.com/NixOS/nix/issues/6033 | |||
Turning this option on (currently) means that it will try to optimize everytime you build, further slowing builds and causing a lot of thrash. If you want to avoid this, set up a simple cron job for weekly or just run every once in a while. | |||
==== Manual ==== | ==== Manual ==== |