forked from pub-solar/os
enable hardware acceleration
This commit is contained in:
parent
792e7b7c05
commit
a4f5fa9692
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -9,6 +9,9 @@ in
|
|||
./sway
|
||||
];
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
hardware.opengl.driSupport = true;
|
||||
|
||||
sound.enable = true;
|
||||
|
||||
environment = {
|
||||
|
|
|
@ -86,6 +86,8 @@ in
|
|||
enable = true;
|
||||
config = {
|
||||
ytdl-format = "bestvideo[height<=?1080]+bestaudio/best";
|
||||
hwdec = "auto";
|
||||
vo = "gpu";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue