27 lines
598 B
Nix
27 lines
598 B
Nix
|
{ 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 = {
|
||
|
"mpv" = {
|
||
|
name = "mpv Media Player";
|
||
|
exec = "mpv --player-operation-mode=pseudo-gui -- %U";
|
||
|
noDisplay = true;
|
||
|
};
|
||
|
|
||
|
"umpv" = {
|
||
|
name = "umpv Media Player";
|
||
|
exec = "umpv --player-operation-mode=pseudo-gui -- %U";
|
||
|
noDisplay = true;
|
||
|
};
|
||
|
};
|
||
|
}
|