From 64cafcb0b71faffbbcc939fcfc4757aa8a41f2bd Mon Sep 17 00:00:00 2001 From: twoneis Date: Thu, 28 Dec 2023 19:06:27 +0100 Subject: [PATCH] intel graphic settings for surface --- devices/surface/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/devices/surface/default.nix b/devices/surface/default.nix index ce1e96d..06b9cc1 100644 --- a/devices/surface/default.nix +++ b/devices/surface/default.nix @@ -1,10 +1,23 @@ -{ ... }: { +{ pkgs, ... }: { imports = [ ./hardware-config.nix ]; networking.hostName = "surface"; + # Enable OpenGL + hardware.opengl = { + enable = true; + driSupport = true; + driSupport32Bit = true; + extraPackages = with pkgs; [ + intel-media-driver + vaapiIntel + vaapiVdpau + libvdpau-va-gl + ]; + }; + services.auto-cpufreq = { enable = true; settings = {