nasbak: change to 2.5 raid1

This commit is contained in:
Kabbone 2024-02-25 20:36:58 +01:00
parent d3101d88c9
commit 8c6d79ca6f
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY

View File

@ -19,20 +19,20 @@
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ]; boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" ];
# boot.initrd.secrets = { boot.initrd.secrets = {
# "/root/NASKeyfile" = "/root/NASKeyfile" =
# /root/NASKeyfile; /root/NASKeyfile;
# }; };
# boot.initrd.luks.devices = { boot.initrd.luks.devices = {
# NAS-RAID1 = { NAS-RAID1 = {
# device = "/dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088"; device = "/dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088";
# keyFile = "/root/NASKeyfile"; keyFile = "/root/NASKeyfile";
# }; };
# NAS-RAID2 = { NAS-RAID2 = {
# device = "/dev/disk/by-uuid/b9edc489-ac37-4b28-981d-442722df7ae2"; device = "/dev/disk/by-uuid/b9edc489-ac37-4b28-981d-442722df7ae2";
# keyFile = "/root/NASKeyfile"; keyFile = "/root/NASKeyfile";
# }; };
# }; };
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.tmp.useTmpfs = false; boot.tmp.useTmpfs = false;
@ -184,7 +184,7 @@
# }; # };
# #
fileSystems."/mnt/nas" = fileSystems."/mnt/nas" =
{ device = "/dev/disk/by-uuid/6f53d32d-b56f-42ec-bfad-c0b8d1114015"; { device = "/dev/disk/by-uuid/70523c79-ef5c-40f2-8782-60fc86bb445b";
fsType = "btrfs"; fsType = "btrfs";
options = [ "compress=zstd:9,space_cache=v2,noatime,subvol=@nasbak" ]; options = [ "compress=zstd:9,space_cache=v2,noatime,subvol=@nasbak" ];
}; };