configuration.nix/home/programs/mpv.nix
2023-04-09 19:34:18 +05:30

20 lines
466 B
Nix

{ config, pkgs, ... }: {
programs.mpv = {
enable = true;
package = pkgs.mpv.override { youtubeSupport = true; };
config = {
hwdec = "auto-safe";
gpu-context = "wayland";
};
defaultProfiles = [ "gpu-hq" ];
scripts = with pkgs.mpvScripts; [ mpris ];
};
xdg.desktopEntries = {
"umpv" = {
name = "umpv Media Player";
exec = "umpv --player-operation-mode=pseudo-gui -- %U";
noDisplay = true;
};
};
}