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;