1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-26 09:34:15 +03:00

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";
}; };
}; };