enable autoScrub on btrfs

This commit is contained in:
Artemis Tosini 2022-02-01 07:00:28 +00:00
parent e405957978
commit 46855eb036
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
2 changed files with 10 additions and 0 deletions

View file

@ -22,4 +22,9 @@
"/boot".options = [ "noatime" ]; "/boot".options = [ "noatime" ];
"/".options = [ "noatime" ]; "/".options = [ "noatime" ];
}; };
services.btrfs.autoScrub = {
enable = true;
fileSystems = [ "/" ];
};
} }

View file

@ -38,4 +38,9 @@ in
fileSystems."/media/luna/photos".options = net_opts; fileSystems."/media/luna/photos".options = net_opts;
fileSystems."/media/luna/games".options = net_opts; fileSystems."/media/luna/games".options = net_opts;
fileSystems."/media/luna/private".options = net_opts; fileSystems."/media/luna/private".options = net_opts;
services.btrfs.autoScrub = {
enable = true;
fileSystems = [ "/" "/media/data" ];
};
} }