enable hardware acceleration

This commit is contained in:
Timothy DeHerrera 2019-12-17 18:53:29 -07:00
parent 792e7b7c05
commit a4f5fa9692
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
3 changed files with 19 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ lib, ... }: { lib, pkgs, ... }:
let let
inherit (builtins) readFile; inherit (builtins) readFile;
in in
@ -19,6 +19,19 @@ in
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD";
};
hardware.cpu.intel.updateMicrocode = true;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
];
networking.networkmanager = { networking.networkmanager = {
enable = true; enable = true;
}; };

View file

@ -9,6 +9,9 @@ in
./sway ./sway
]; ];
hardware.opengl.enable = true;
hardware.opengl.driSupport = true;
sound.enable = true; sound.enable = true;
environment = { environment = {

View file

@ -86,6 +86,8 @@ in
enable = true; enable = true;
config = { config = {
ytdl-format = "bestvideo[height<=?1080]+bestaudio/best"; ytdl-format = "bestvideo[height<=?1080]+bestaudio/best";
hwdec = "auto";
vo = "gpu";
}; };
}; };