Use mpv with hardware acceleration

This commit is contained in:
Fabian Hauser 2024-02-20 01:30:21 +07:00
parent d47a0f61f5
commit e26dce596e
3 changed files with 18 additions and 2 deletions

View file

@ -20,7 +20,12 @@
opengl = {
enable = true;
driSupport32Bit = true;
extraPackages = with pkgs; [ intel-compute-runtime intel-media-driver intel-vaapi-driver ];
extraPackages = with pkgs; [
intel-compute-runtime
intel-media-driver
libvdpau-va-gl
vaapiVdpau
];
};
acpilight.enable = true;
bluetooth = {

View file

@ -14,7 +14,7 @@
image-vector = [ "org.inkscape.Inkscape.desktop" ];
ebooks = [ "calibre-ebook-viewer.desktop" ];
code-general = [ "codium.desktop" ];
video = [ "vlc.desktop" ];
video = [ "mpv.desktop" ];
compression = [ "org.gnome.Nautilus.desktop" ];
in {
"text/html" = browser;

View file

@ -1,6 +1,17 @@
{ config, pkgs, lib, ... }:
{
programs.mpv = {
enable = true;
config = {
hwdec = "auto-safe";
vo = "gpu";
gpu-context = "wayland";
force-window = true;
profile = "gpu-hq";
};
};
home.packages = with pkgs;
[ vlc v4l-utils playerctl yt-dlp ] ++ [ # Audio
gnome.gnome-sound-recorder