diff --git a/machines/p330/hardware-configuration.nix b/machines/p330/hardware-configuration.nix index 77d666e..3ce58d4 100644 --- a/machines/p330/hardware-configuration.nix +++ b/machines/p330/hardware-configuration.nix @@ -43,6 +43,20 @@ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + # GPU acceleration + nixpkgs.config.packageOverrides = pkgs: { + vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; + }; + hardware.opengl = { + enable = true; + extraPackages = with pkgs; [ + intel-media-driver + vaapiIntel + vaapiVdpau + libvdpau-va-gl + ]; + }; + # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true; }