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
inherit (builtins) readFile;
in
@ -19,6 +19,19 @@ in
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 = {
enable = true;
};

View File

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

View File

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