From 64e486da599935ec240b04e00625e8a1227cf775 Mon Sep 17 00:00:00 2001 From: wo2wz <189177184+wo2wz@users.noreply.github.com> Date: Fri, 3 Oct 2025 17:59:38 -0400 Subject: [PATCH] drone: enable btrfs auto scrub --- hosts/Drone/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/hosts/Drone/default.nix b/hosts/Drone/default.nix index fba61ba..7208c4e 100755 --- a/hosts/Drone/default.nix +++ b/hosts/Drone/default.nix @@ -22,6 +22,16 @@ "/swap".options = [ "noatime" ]; }; + services.btrfs.autoScrub = { + enable = true; + fileSystems = [ "/" ]; + }; + + swapDevices = [{ + device = "/swap/swapfile"; + size = 8192; + }]; + # config for ZFS external storage boot.supportedFilesystems = [ "zfs" ]; networking.hostId = "58bae81c"; @@ -52,11 +62,6 @@ services.zfs.autoScrub.enable = true; - swapDevices = [{ - device = "/swap/swapfile"; - size = 8192; - }]; - networking = { hostName = "${hostName}"; firewall = lib.mkForce {