From 46855eb03680f59e322907d23f958a6c5a97839c Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Tue, 1 Feb 2022 07:00:28 +0000 Subject: [PATCH] enable autoScrub on btrfs --- system/rainbowdash/boot-config.nix | 5 +++++ system/starlight/boot-config.nix | 5 +++++ 2 files changed, 10 insertions(+) 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" ]; + }; }