diff --git a/system/rainbowdash/boot-config.nix b/system/rainbowdash/boot-config.nix index efda058..34b9c3e 100644 --- a/system/rainbowdash/boot-config.nix +++ b/system/rainbowdash/boot-config.nix @@ -22,4 +22,9 @@ "/boot".options = [ "noatime" ]; "/".options = [ "noatime" ]; }; + + services.btrfs.autoScrub = { + enable = true; + fileSystems = [ "/" ]; + }; } diff --git a/system/starlight/boot-config.nix b/system/starlight/boot-config.nix index 117f4bb..4f5a176 100644 --- a/system/starlight/boot-config.nix +++ b/system/starlight/boot-config.nix @@ -38,4 +38,9 @@ in fileSystems."/media/luna/photos".options = net_opts; fileSystems."/media/luna/games".options = net_opts; fileSystems."/media/luna/private".options = net_opts; + + services.btrfs.autoScrub = { + enable = true; + fileSystems = [ "/" "/media/data" ]; + }; }