diff --git a/nixos_modules/btrfs_scrub.nix b/nixos_modules/btrfs_scrub.nix index 0eaf53d..e131095 100644 --- a/nixos_modules/btrfs_scrub.nix +++ b/nixos_modules/btrfs_scrub.nix @@ -8,7 +8,7 @@ let unique (attrValues (mapAttrs (_: v: v.device) btrfsFileSystems)); in { services.btrfs.autoScrub = { - enable = true; + enable = btrfsDevices != [ ]; fileSystems = btrfsDevices; }; }