From 0cfc3a6101590529122b3154f921840a7fefd03b Mon Sep 17 00:00:00 2001 From: wo2wz <189177184+wo2wz@users.noreply.github.com> Date: Tue, 30 Sep 2025 19:07:02 -0400 Subject: [PATCH] add zfs storage --- hosts/Drone/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hosts/Drone/default.nix b/hosts/Drone/default.nix index 5434fef..7d40134 100755 --- a/hosts/Drone/default.nix +++ b/hosts/Drone/default.nix @@ -22,6 +22,23 @@ "/swap".options = [ "noatime" ]; }; + # config for ZFS external storage + boot.supportedFilesystems = [ "zfs" ]; + networking.hostId = "58bae81c"; + fileSystems = { + "/mnt/external" = { + device = "zpool-mirror"; + fsType = "zfs"; + }; + + "/mnt/external/backup" = { + device = "zpool-mirror/backup"; + fsType = "zfs"; + }; + }; + + services.zfs.autoScrub.enable = true; + swapDevices = [{ device = "/swap/swapfile"; size = 8192;