1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-26 07:43:45 +01:00
github.com-tboerger-nixos-c.../servers/asgard/boot.nix
2022-11-17 12:00:18 +01:00

36 lines
684 B
Nix

{ config, lib, pkgs, ... }:
{
boot = {
binfmt = {
emulatedSystems = [
"aarch64-linux"
];
};
kernelPackages = lib.mkDefault pkgs.linuxPackages;
cleanTmpDir = true;
loader = {
grub = {
enable = true;
version = 2;
efiSupport = false;
copyKernels = true;
devices = [
"/dev/disk/by-path/pci-0000:00:14.1-ata-1"
];
};
};
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
initrd = {
availableKernelModules = [ "ahci" "ehci_pci" "ohci_pci" "pata_atiixp" "sd_mod" "usb_storage" "usbhid" ];
kernelModules = [ "dm-snapshot" ];
};
};
}