From 96af961cbb346b50d59b985ba8ed35ebd2b9ce4a Mon Sep 17 00:00:00 2001 From: Aditya Date: Fri, 12 Apr 2024 12:40:00 +0530 Subject: [PATCH] add opengl settings --- modules/nixos/hardware/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/nixos/hardware/default.nix b/modules/nixos/hardware/default.nix index 6be1a40..1e1e31d 100644 --- a/modules/nixos/hardware/default.nix +++ b/modules/nixos/hardware/default.nix @@ -8,15 +8,19 @@ hardware.enable = lib.mkEnableOption "enable hardware options"; }; config = lib.mkIf config.hardware.enable { + environment.sessionVariables = {LIBVA_DRIVER_NAME = "iHD";}; hardware = { #firmware = with pkgs; [firmwareLinuxNonfree]; opengl = { enable = true; - extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver]; + driSupport = true; + driSupport32Bit = true; + extraPackages = with pkgs; [vaapiIntel vaapiVdpau libvdpau-va-gl intel-media-driver intel-vaapi-driver rocm-opencl-icd rocm-opencl-runtime]; }; }; nixpkgs.config.packageOverrides = pkgs: { vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;}; + intel-vaapi-driver = pkgs.intel-vaapi-driver.override {enableHybridCodec = true;}; }; }; }