2022-12-04 13:45:43 +00:00
|
|
|
{config, ...}: {
|
|
|
|
boot.initrd.kernelModules = ["dm-snapshot"];
|
|
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
|
|
|
boot.kernelModules = ["kvm-amd"];
|
2022-11-23 15:58:12 +00:00
|
|
|
|
2022-12-03 13:16:22 +00:00
|
|
|
boot.initrd.services.swraid.mdadmConf =
|
|
|
|
config.environment.etc."mdadm.conf".text;
|
2022-11-23 15:58:12 +00:00
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/root";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-label/boot";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
efiSupport = false;
|
|
|
|
device = "nodev";
|
2022-12-04 13:45:43 +00:00
|
|
|
devices = ["/dev/sda" "/dev/sdb"];
|
2022-11-23 15:58:12 +00:00
|
|
|
};
|
|
|
|
}
|