1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 03:32:08 +01:00
github.com-tboerger-nixos-c.../machines/chnum/boot.nix

51 lines
735 B
Nix
Raw Normal View History

2022-09-27 22:07:46 +02:00
{ config, lib, pkgs, ... }:
{
boot = {
binfmt = {
emulatedSystems = [
"aarch64-linux"
];
};
kernelPackages = lib.mkDefault pkgs.linuxPackages;
2022-09-27 22:07:46 +02:00
cleanTmpDir = true;
loader = {
efi = {
canTouchEfiVariables = true;
};
2022-09-29 15:40:30 +02:00
grub = {
2022-09-27 22:07:46 +02:00
enable = true;
2022-09-29 15:40:30 +02:00
version = 2;
device = "nodev";
efiSupport = true;
2022-09-27 22:07:46 +02:00
};
};
kernelModules = [
"kvm-intel"
];
extraModulePackages = [
];
initrd = {
availableKernelModules = [
"ahci"
2022-09-29 15:40:30 +02:00
"atkbd"
2022-09-27 22:07:46 +02:00
"rtsx_pci_sdmmc"
2022-09-29 15:40:30 +02:00
"sd_mod"
"usb_storage"
2022-09-29 15:40:30 +02:00
"xhci_pci"
2022-09-27 22:07:46 +02:00
];
kernelModules = [
"dm-snapshot"
];
};
};
}