add zfs storage

This commit is contained in:
wo2wz 2025-09-30 19:07:02 -04:00
parent 2fca799117
commit 0cfc3a6101

View file

@ -22,6 +22,23 @@
"/swap".options = [ "noatime" ]; "/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 = [{ swapDevices = [{
device = "/swap/swapfile"; device = "/swap/swapfile";
size = 8192; size = 8192;