1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 03:32:08 +01:00
github.com-tboerger-nixos-c.../servers/asgard/boot.nix
2024-01-30 14:00:26 +01:00

34 lines
640 B
Nix

{ config, lib, pkgs, ... }:
{
boot = {
binfmt = {
emulatedSystems = [
"aarch64-linux"
];
};
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
tmp = {
cleanOnBoot = true;
};
loader = {
grub = {
enable = true;
efiSupport = false;
copyKernels = true;
};
};
kernelModules = [ "kvm-amd" ];
extraModulePackages = with config.boot.kernelPackages; [ ];
initrd = {
availableKernelModules = [ "ahci" "ehci_pci" "ohci_pci" "pata_atiixp" "sd_mod" "usb_storage" "usbhid" ];
kernelModules = [ "dm-snapshot" ];
};
};
}