Enable btrfs autoscrub

This commit is contained in:
Valentin Brandl 2023-10-31 12:34:22 +01:00
parent 37901b3284
commit 5b7e1eef9e
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

View File

@ -103,6 +103,13 @@ inputs.nixpkgs.lib.nixosSystem {
supportedFilesystems = [ "ntfs" ];
};
# btrf autoscrub
services.btrfs.autoScrub = {
enable = true;
# multiple subvolumes of the same fs are mounted. only scrub '/' to prevent multiple runs
fileSystems = [ "/" ];
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/93bdadfc-961a-4ea6-aef0-d3cd50847f0b";
fsType = "btrfs";