From a93c0fdff1e7cb0cf5cb55ae459fd44f79b2acd1 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Wed, 15 Feb 2023 10:43:16 +0100 Subject: [PATCH] Better btrfs autoScrub defaults --- nixos_modules/btrfs_scrub.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos_modules/btrfs_scrub.nix b/nixos_modules/btrfs_scrub.nix index 0eaf53d..e131095 100644 --- a/nixos_modules/btrfs_scrub.nix +++ b/nixos_modules/btrfs_scrub.nix @@ -8,7 +8,7 @@ let unique (attrValues (mapAttrs (_: v: v.device) btrfsFileSystems)); in { services.btrfs.autoScrub = { - enable = true; + enable = btrfsDevices != [ ]; fileSystems = btrfsDevices; }; }