From 08d1afd90fed1a3c49142d1aa3e0675aacf64e3b Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Sat, 4 Jan 2025 23:16:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Hardware=20acceleration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configuration.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 24bafeb..4fbc37d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -44,6 +44,7 @@ # Tells Electron apps to use Wayland NIXOS_OZONE_WL = "1"; NIXOS_CONFIG_PATH = "/etc/nixos"; + LIBVA_DRIVER_NAME = "iHD"; # For hardware acceleration }; fonts = { @@ -129,7 +130,13 @@ hardware = { # Enable OpenGL - graphics.enable = true; + graphics = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver # For Broadwell (2014) or newer processors. LIBVA_DRIVER_NAME=iHD + ]; + }; + nvidia = { # Required modesetting.enable = true;