{ lib, config, namespace, ... }: { services.btrfs = { autoScrub.enable = lib.mkDefault (config.${namespace}.hardware.disko.filesystem == "btrfs"); autoScrub.fileSystems = lib.mkDefault [ "/nix" "/root" "/etc" "/tmp" "/var/log" "/home" ]; }; }