Btrfs: Difference between revisions
imported>Vieta No edit summary |
imported>Taxborn m Typo and slight grammar change |
||
| Line 99: | Line 99: | ||
<code>interval</code> syntax is defined by [https://www.freedesktop.org/software/systemd/man/systemd.time.html#Calendar%20Events systemd.timer's Calendar Events] | <code>interval</code> syntax is defined by [https://www.freedesktop.org/software/systemd/man/systemd.time.html#Calendar%20Events systemd.timer's Calendar Events] | ||
By default autoscrub will scrub all detected btrfs mount points, | By default, autoscrub will scrub all detected btrfs mount points. However, in case of mounted nested subvolumes (like in example above <code>/nix</code> and <code>/home</code> are nested subvolumes under <code>/</code>), you only need to scrub the top-most one. So an example configuration may look like this: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
services.btrfs.autoScrub = { | services.btrfs.autoScrub = { | ||