From 36d5c90017763ff4d78758ab06739697e2d248b5 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sun, 25 Jan 2026 03:58:02 +0100 Subject: [PATCH] fix(gampo): early video drivers load --- hosts/gampo/configuration.nix | 1 - system/boot/boot.nix | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/gampo/configuration.nix b/hosts/gampo/configuration.nix index 2a5befa..4ad2c4b 100644 --- a/hosts/gampo/configuration.nix +++ b/hosts/gampo/configuration.nix @@ -16,7 +16,6 @@ kernel = { cpuVendor = "intel"; package = pkgs.linuxPackages; - modules = ["i915"]; }; systemd-boot = true; }; diff --git a/system/boot/boot.nix b/system/boot/boot.nix index 7b354a9..02714c4 100644 --- a/system/boot/boot.nix +++ b/system/boot/boot.nix @@ -59,7 +59,11 @@ in { }; config.boot = { - initrd.kernelModules = lists.optional config.mySystem.hardware.amdgpu.enable "amdgpu"; + initrd.kernelModules = lib.lists.singleton ( + if config.mySystem.hardware.amdgpu.enable + then "amdgpu" + else "i915" + ); loader = { systemd-boot.enable = cfg.systemd-boot; efi.canTouchEfiVariables = cfg.systemd-boot;