diff --git a/morph/storage004-hardware.nix b/morph/storage004-hardware.nix index 6b8d0f19ed323e59adafa3f5513e053b25ba8ee0..07de74e20ef58ab474b02248bcb6eed6189e1079 100644 --- a/morph/storage004-hardware.nix +++ b/morph/storage004-hardware.nix @@ -8,7 +8,7 @@ [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ]; - boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -18,6 +18,13 @@ fsType = "ext4"; }; + # Manually created using: + # zpool create -f -m legacy -o ashift=12 root raidz /dev/disk/by-id/{wwn-0x5000cca25cc0b6f9,wwn-0x5000cca25cc073af,wwn-0x5000cca25dcca3b5,wwn-0x5000cca25cc0addc,wwn-0x5000cca25cc08772,wwn-0x5000cca25dcc6f5f,wwn-0x5000cca25dcc4491} + fileSystems."/storage" = + { device = "root"; + fsType = "zfs"; + }; + swapDevices = [ ]; nix.maxJobs = lib.mkDefault 32;