drone: enable btrfs auto scrub

This commit is contained in:
wo2wz 2025-10-03 17:59:38 -04:00
parent 9cbf114752
commit 64e486da59

View file

@ -22,6 +22,16 @@
"/swap".options = [ "noatime" ]; "/swap".options = [ "noatime" ];
}; };
services.btrfs.autoScrub = {
enable = true;
fileSystems = [ "/" ];
};
swapDevices = [{
device = "/swap/swapfile";
size = 8192;
}];
# config for ZFS external storage # config for ZFS external storage
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
networking.hostId = "58bae81c"; networking.hostId = "58bae81c";
@ -52,11 +62,6 @@
services.zfs.autoScrub.enable = true; services.zfs.autoScrub.enable = true;
swapDevices = [{
device = "/swap/swapfile";
size = 8192;
}];
networking = { networking = {
hostName = "${hostName}"; hostName = "${hostName}";
firewall = lib.mkForce { firewall = lib.mkForce {