diff options
author | ene <ene@sils.li> | 2023-03-12 20:22:58 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-03-12 20:22:58 +0100 |
commit | 8d12b58615dc3a1698241903e57f3ece50e201c1 (patch) | |
tree | 1dd3679acc3fcaf0218d564a23af7dd20105b732 | |
parent | Fix(hm/conf/zsh): Remove neofetch completely (diff) | |
download | nixos-config-8d12b58615dc3a1698241903e57f3ece50e201c1.tar.gz nixos-config-8d12b58615dc3a1698241903e57f3ece50e201c1.zip |
Fix(system): Activate hardware_video_acceleration
-rw-r--r-- | system/graphics/default.nix | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/system/graphics/default.nix b/system/graphics/default.nix index eb92d5ec..dba4ba90 100644 --- a/system/graphics/default.nix +++ b/system/graphics/default.nix @@ -1,4 +1,24 @@ -{config, ...}: { - hardware.opengl.enable = true; +{ + config, + pkgs, + ... +}: { + nixpkgs.config.packageOverrides = pkgs: { + vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;}; + }; + hardware.opengl = { + enable = true; + extraPackages = builtins.attrValues { + # TODO should this activate intel stuff here? + inherit + (pkgs) + intel-media-driver # LIBVA_DRIVER_NAME=iHD + vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium) + vaapiVdpau + libvdpau-va-gl + ; + }; + }; } # vim: ts=2 + |