Use mpv with hardware acceleration
This commit is contained in:
parent
d47a0f61f5
commit
e26dce596e
3 changed files with 18 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue