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

@ -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