Filesystems: Difference between revisions
m added the "exec" option as it helps to run steam games on another drive |
m →SSD TRIM support: don't mention filesystem specific mount options |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 37: | Line 37: | ||
<blockquote> | <blockquote> | ||
Bind mounting allows a filesystem hierarchy or a file to be mounted at a different mount point. Unlike a symbolic link, a bind mount does not exist on the filesystem itself. | Bind mounting allows a filesystem hierarchy or a file to be mounted at a different mount point. Unlike a symbolic link, a bind mount does not exist on the filesystem itself.<ref>[https://en.wikipedia.org/wiki/Mount_(Unix)#Bind_mounting Wikipedia - Bind mount]</ref> | ||
<ref>[https://en.wikipedia.org/wiki/Mount_(Unix)#Bind_mounting Wikipedia - Bind mount]</ref> | |||
</blockquote> | </blockquote> | ||
Line 65: | Line 64: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Tips and tricks == | |||
=== SSD TRIM support === | |||
On NixOS, [https://en.wikipedia.org/wiki/Trim_(computing) TRIM] support is enabled by default by the {{nixos:option|services.fstrim.enable}} option. This periodically discards unused blocks on supported storage devices, helping to maintain SSD performance over time. | |||
The trimming schedule is controlled by the {{nixos:option|services.fstrim.interval}} option. Continuous trimming (as set by the <code>discard</code>, see <code>man mount(8)</code>) mount option is not recommended as it can negatively impact SSD performance. | |||
Additionally, setting <code>noatime</code> can reduce the number of disk writes and can improve system performance. | |||
{{file|/etc/nixos/configuration.nix|nix| | |||
<nowiki> | |||
fileSystems."/".options = [ "noatime" ]; | |||
</nowiki> | |||
}} | |||
= References = | = References = | ||
<references /> | <references /> |