Enable btrfs autoscrub
This commit is contained in:
parent
37901b3284
commit
5b7e1eef9e
@ -103,6 +103,13 @@ inputs.nixpkgs.lib.nixosSystem {
|
|||||||
supportedFilesystems = [ "ntfs" ];
|
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."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/93bdadfc-961a-4ea6-aef0-d3cd50847f0b";
|
{ device = "/dev/disk/by-uuid/93bdadfc-961a-4ea6-aef0-d3cd50847f0b";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
Loading…
Reference in New Issue
Block a user