summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-17 20:30:47 +0200
committerAlan Pearce2017-09-17 20:30:47 +0200
commitb1a0cb9247a1000dc17bcd7f14ec801a8a98c770 (patch)
tree29f5c795794f321fc4f87f710109c402fd8a92a0
parenteb92294f514568445b134f3fb9154c4d55f0519f (diff)
downloadnixos-configuration-b1a0cb9247a1000dc17bcd7f14ec801a8a98c770.tar.lz
nixos-configuration-b1a0cb9247a1000dc17bcd7f14ec801a8a98c770.tar.zst
nixos-configuration-b1a0cb9247a1000dc17bcd7f14ec801a8a98c770.zip
intel-gpu: Use i915 to setup console earlier
-rw-r--r--modules/grub2.nix1
-rw-r--r--modules/intel-gpu.nix8
2 files changed, 8 insertions, 1 deletions
diff --git a/modules/grub2.nix b/modules/grub2.nix
index be78a60..6eaa8cc 100644
--- a/modules/grub2.nix
+++ b/modules/grub2.nix
@@ -9,5 +9,4 @@
     };
     efi.canTouchEfiVariables = true;
   };
-  boot.earlyVconsoleSetup = true;
 }
diff --git a/modules/intel-gpu.nix b/modules/intel-gpu.nix
index 775396a..b44ddad 100644
--- a/modules/intel-gpu.nix
+++ b/modules/intel-gpu.nix
@@ -3,4 +3,12 @@
 { hardware.opengl.extraPackages = with pkgs; [
     vaapiIntel
   ];
+
+  boot.earlyVconsoleSetup = true;
+  boot.initrd.kernelModules = [
+    "i915"
+  ];
+  boot.kernelModules = [
+    "i915"
+  ];
 }