From 54410b5aa8b568ea01a7b1895073b40c3699f1e0 Mon Sep 17 00:00:00 2001
From: sefidel <contact@sefidel.net>
Date: Thu, 14 Sep 2023 21:00:21 +0900
Subject: feat(nixos/haruka): load i915 driver on early stages

---
 nixos/haruka/configuration.nix | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'nixos/haruka')

diff --git a/nixos/haruka/configuration.nix b/nixos/haruka/configuration.nix
index 41dfc4a..d6cba4b 100644
--- a/nixos/haruka/configuration.nix
+++ b/nixos/haruka/configuration.nix
@@ -13,8 +13,13 @@
   boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
   boot.kernelParams = [
     "console=tty1"
+    "i915.fastboot=1"
   ];
 
+  # Load the intel iGPU driver
+  boot.initrd.kernelModules = [ "i915" ];
+  services.xserver.videoDrivers = [ "intel" ];
+
   boot.initrd.supportedFilesystems = [ "zfs" ];
   boot.supportedFilesystems = [ "zfs" ];
   boot.zfs.enableUnstable = true;
-- 
cgit 1.4.1