Better btrfs autoScrub defaults

This commit is contained in:
Filippo Berto 2023-02-15 10:43:16 +01:00
parent 93b0ccf178
commit a93c0fdff1
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -8,7 +8,7 @@ let
unique (attrValues (mapAttrs (_: v: v.device) btrfsFileSystems));
in {
services.btrfs.autoScrub = {
enable = true;
enable = btrfsDevices != [ ];
fileSystems = btrfsDevices;
};
}