Fixed some drive oddities

This commit is contained in:
James Patrick 2021-11-15 03:22:28 +00:00
parent e7a149d16c
commit 2f61280348
1 changed files with 8 additions and 3 deletions

View File

@ -8,11 +8,16 @@
[ (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.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices."crypt" =
{ device = "/dev/disk/by-partlabel/crypt";
preLVM = true;
};
fileSystems."/" =
{ device = "rpool/root/nixos";
fsType = "zfs";
@ -24,12 +29,12 @@
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/46C8-4779";
{ device = "/dev/disk/by-partlabel/boot";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/2162f142-e124-4aeb-aece-79f1648148cd"; }
[ { device = "/dev/partitions/swap"; }
];
}