28 lines
653 B
Nix
28 lines
653 B
Nix
{ config, lib, pkgs, modulesPath, ... }: {
|
|
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" ];
|
|
};
|
|
}
|