Fix bootloader configurations

This commit is contained in:
Pedro Rey Anca 2024-07-09 00:24:39 +02:00
parent e306d6a8e6
commit 73a9b4d16c
3 changed files with 11 additions and 5 deletions

View file

@ -10,6 +10,8 @@
hardware.ckb-next.enable = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.initrd.kernelModules = ["amdgpu"];
services.xserver.videoDrivers = ["amdgpu"];
hardware.graphics.extraPackages = with pkgs; [

View file

@ -47,6 +47,9 @@
powerManagement.cpuFreqGovernor = "performance";
boot.loader.efi.canTouchEfiVariables = false; # For the next option
boot.loader.grub.efiInstallAsRemovable = true;
boot = {
kernelModules = ["acpi_call"];
extraModulePackages = with config.boot.kernelPackages;

View file

@ -1,14 +1,15 @@
{pkgs, ...}: {
{
pkgs,
lib,
...
}: {
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
grub = {
efiSupport = true;
device = "nodev";
useOSProber = true;
};
efi.canTouchEfiVariables = lib.mkDefault true;
};
boot.kernelPackages = pkgs.linuxPackages_latest;
}