nixos/modules/boot/basic.nix

30 lines
596 B
Nix
Raw Normal View History

2023-06-09 21:09:52 +08:00
{ efi, timeout ? 5 }: { pkgs, ... }@inputs:
2023-06-05 21:53:13 +08:00
{
config =
{
boot =
{
loader =
{
2023-06-09 21:14:22 +08:00
timeout = timeout;
2023-06-05 21:53:13 +08:00
systemd-boot.enable = true;
efi.canTouchEfiVariables = efi;
};
initrd.systemd.enable = true;
2023-06-13 01:11:02 +08:00
kernelPackages = ( inputs.inputs.nixpkgs.lib.nixosSystem
{
system = "x86_64-linux";
modules =
[{
nixpkgs =
{
hostPlatform = { system = "x86_64-linux"; gcc = { arch = "alderlake"; tune = "alderlake"; }; };
config.allowUnfree = true;
};
}];
} ).pkgs.linuxPackages_xanmod_latest;
2023-06-05 21:53:13 +08:00
};
hardware.enableAllFirmware = true;
};
}