Filesystems: Difference between revisions
m the mentioned example is not part of the quote or relevant in the rest of the article |
Move ssd trim information from nixos-generate-config wiki page |
||
Line 64: | Line 64: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Tips and tricks == | |||
=== SSD TRIM support === | |||
If you are using an SSD it may be useful to enable [https://en.wikipedia.org/wiki/Trim_(computing) TRIM] support as well as set filesystem flags to improve the SSD performance: | |||
{{file|/etc/nixos/configuration.nix|nix| | |||
<nowiki> | |||
fileSystems."/".options = [ "noatime" "nodiratime" "discard" ]; | |||
</nowiki> | |||
}} | |||
= References = | = References = | ||
<references /> | <references /> |