From f188369fac544e67575686f0fef694a3360cda31 Mon Sep 17 00:00:00 2001 From: Victor Mignot Date: Sun, 12 Jan 2025 00:17:33 +0100 Subject: [PATCH] camelot: Switch RAID to ZFS --- configurations/camelot/hardware.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/configurations/camelot/hardware.nix b/configurations/camelot/hardware.nix index ab94f0f..b691b66 100644 --- a/configurations/camelot/hardware.nix +++ b/configurations/camelot/hardware.nix @@ -7,11 +7,19 @@ "usbhid" "usb_storage" "sd_mod" + "mpt3sas" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - boot.swraid.enable = true; + boot.supportedFilesystems = [ "zfs" ]; + boot.zfs.forceImportRoot = false; + networking.hostId = "c97cef07"; + boot.zfs.extraPools = [ "pool" ]; + services.zfs = { + autoScrub.enable = true; + trim.enable = true; + }; fileSystems = { "/" = { @@ -19,11 +27,6 @@ fsType = "ext4"; }; - "/srv" = { - device = "/dev/disk/by-uuid/329fe696-ad2f-4a86-b45f-8b143daf02d2"; - fsType = "ext4"; - }; - "/boot" = { device = "/dev/disk/by-uuid/901B-0D68"; fsType = "vfat";