Use systemd-boot instead of GRUB

Enable systemd-boot and allow touching EFI variables.
Move i915.enable_guc=3 into boot.kernelParams and remove duplicate
entry.
This commit is contained in:
Stefan Kempinger 2026-04-16 19:45:37 +02:00
parent a736fb7fbf
commit 5d6a7ad2b4
Signed by: CrazyChaoz
SSH key fingerprint: SHA256:YOwyLUwjYN0SbH23u/6sadxTPxiCq8DRCW69qpWhjA8

View file

@ -4,10 +4,15 @@
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
boot.loader.grub.enable = true; boot = {
boot.loader.grub.device = "/dev/sda"; loader.systemd-boot.enable = true;
boot.loader.grub.useOSProber = true; loader.efi.canTouchEfiVariables = true;
kernelParams = [
"i915.enable_guc=3"
];
};
services.xserver.videoDrivers = [ "modesetting" ]; services.xserver.videoDrivers = [ "modesetting" ];
hardware.graphics = { hardware.graphics = {
@ -25,7 +30,6 @@
}; };
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
boot.kernelParams = [ "i915.enable_guc=3" ];
environment.sessionVariables = { environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD"; LIBVA_DRIVER_NAME = "iHD";