nixfiles/hosts/buildbox/hardware.nix

30 lines
718 B
Nix
Raw Normal View History

{ config, lib, pkgs, modulesPath, ... }: {
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.kernelModules = [ "kvm-amd" ];
environment.etc."mdadm.conf".text = ''
HOMEHOST <ignore>
'';
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"];
};
}