diff --git a/hm/desktop.nix b/hm/desktop.nix index 0c70590..e5796c2 100644 --- a/hm/desktop.nix +++ b/hm/desktop.nix @@ -528,12 +528,17 @@ in config = { audio-display = false; save-position-on-quit = true; - osc = false; # # Required by thumbnail script + osc = false; # Required by thumbnail script + # Hardware acceleration (from https://nixos.wiki/wiki/Accelerated_Video_Playback#MPV) + hwdec = "auto-safe"; + vo = "gpu"; + profile = "gpu-hq"; }; scripts = with pkgs.mpvScripts; [ thumbnail ]; scriptOpts = { mpv_thumbnail_script = { cache_directory = "/tmp/mpv_thumbs_${config.home.username}"; + mpv_hwdec = "auto-safe"; }; }; };