Fixed some drive oddities

This commit is contained in:
James Patrick 2021-11-15 03:22:28 +00:00
parent e7a149d16c
commit 2f61280348

View File

@ -8,11 +8,16 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "cryptd" ];
boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" ]; boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.initrd.luks.devices."crypt" =
{ device = "/dev/disk/by-partlabel/crypt";
preLVM = true;
};
fileSystems."/" = fileSystems."/" =
{ device = "rpool/root/nixos"; { device = "rpool/root/nixos";
fsType = "zfs"; fsType = "zfs";
@ -24,12 +29,12 @@
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/46C8-4779"; { device = "/dev/disk/by-partlabel/boot";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/2162f142-e124-4aeb-aece-79f1648148cd"; } [ { device = "/dev/partitions/swap"; }
]; ];
} }