1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-22 18:21:58 +01:00
github.com-tboerger-nixos-c.../desktops/chnum/boot.nix

43 lines
779 B
Nix
Raw Normal View History

2022-09-27 22:07:46 +02:00
{ config, lib, pkgs, ... }:
{
boot = {
supportedFilesystems = [
"ntfs"
];
binfmt = {
emulatedSystems = [
"aarch64-linux"
];
};
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
tmp = {
cleanOnBoot = true;
};
2022-09-27 22:07:46 +02:00
loader = {
efi = {
canTouchEfiVariables = true;
};
systemd-boot = {
2022-09-27 22:07:46 +02:00
enable = true;
consoleMode = "2";
configurationLimit = 5;
editor = false;
2022-09-27 22:07:46 +02:00
};
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = with config.boot.kernelPackages; [ ];
2022-09-27 22:07:46 +02:00
initrd = {
availableKernelModules = [ "ahci" "atkbd" "rtsx_pci_sdmmc" "sd_mod" "usb_storage" "xhci_pci" ];
kernelModules = [ "dm-snapshot" ];
2022-09-27 22:07:46 +02:00
};
};
}