27 lines
615 B
Nix
27 lines
615 B
Nix
{config, ...}: {
|
|
boot.initrd.kernelModules = ["dm-snapshot"];
|
|
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
|
boot.kernelModules = ["kvm-amd"];
|
|
|
|
boot.initrd.services.swraid.mdadmConf =
|
|
config.environment.etc."mdadm.conf".text;
|
|
|
|
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;
|
|
version = 2;
|
|
device = "nodev";
|
|
devices = ["/dev/sda" "/dev/sdb"];
|
|
};
|
|
}
|