add video accelleration

This commit is contained in:
foosinn 2020-10-27 16:28:40 +01:00
parent c5b592afb3
commit b3cf816738

View file

@ -15,6 +15,19 @@ in {
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965
vaapiVdpau
libvdpau-va-gl
];
};
fileSystems."/" = fileSystems."/" =
{ device = "tank/work/nixos"; { device = "tank/work/nixos";
fsType = "zfs"; fsType = "zfs";