summary refs log tree commit diff stats
path: root/system/settings/hardware/intel-gpu.nix
diff options
context:
space:
mode:
authorAlan Pearce2019-10-22 13:21:06 +0200
committerAlan Pearce2019-10-22 13:21:06 +0200
commit29ad3be5d41963493ab36341cb6a058099757535 (patch)
tree388e14200e501267ce5be98033dab8ded7ac5fd1 /system/settings/hardware/intel-gpu.nix
parentdf9e2d5331a863e285bcfe66391728ce884a61bc (diff)
downloadnixfiles-29ad3be5d41963493ab36341cb6a058099757535.tar.lz
nixfiles-29ad3be5d41963493ab36341cb6a058099757535.tar.zst
nixfiles-29ad3be5d41963493ab36341cb6a058099757535.zip
intel-gpu: switch back to intel driver
Diffstat (limited to 'system/settings/hardware/intel-gpu.nix')
-rw-r--r--system/settings/hardware/intel-gpu.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/settings/hardware/intel-gpu.nix b/system/settings/hardware/intel-gpu.nix
index 95d27cc0..3503c315 100644
--- a/system/settings/hardware/intel-gpu.nix
+++ b/system/settings/hardware/intel-gpu.nix
@@ -1,6 +1,14 @@
 { config, pkgs, ... }:
 
 {
+  # https://wiki.gentoo.org/wiki/Intel#Feature_support
+  services.xserver = {
+    useGlamor = true;
+    deviceSection = ''
+      Option      "DRI"            "3"
+    '';
+    videoDrivers = [ "intel" ];
+  };
 
   boot.kernelParams = [
     "i915.enable_guc=2"