From 5b7e1eef9e9c70839aa2b41a801fa3d84f14c1e9 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 31 Oct 2023 12:34:22 +0100 Subject: [PATCH] Enable btrfs autoscrub --- machines/morpheus.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/machines/morpheus.nix b/machines/morpheus.nix index 2a262a0..bb5d77d 100644 --- a/machines/morpheus.nix +++ b/machines/morpheus.nix @@ -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";