configuration.nix/home/desktop/programs/mpv.nix

27 lines
512 B
Nix
Raw Normal View History

2023-05-18 16:11:26 +05:30
{
config,
pkgs,
...
}: {
2023-04-07 19:09:05 +05:30
programs.mpv = {
enable = true;
2023-05-18 16:11:26 +05:30
package = pkgs.mpv.override {youtubeSupport = true;};
2023-04-07 19:09:05 +05:30
config = {
2023-05-06 00:19:51 +05:30
cache = "yes";
cache-secs = "20";
2023-04-07 19:09:05 +05:30
hwdec = "auto-safe";
gpu-context = "wayland";
};
2023-05-18 16:11:26 +05:30
defaultProfiles = ["gpu-hq"];
scripts = with pkgs.mpvScripts; [mpris];
2023-04-07 19:09:05 +05:30
};
xdg.desktopEntries = {
"umpv" = {
name = "umpv Media Player";
exec = "umpv --player-operation-mode=pseudo-gui -- %U";
noDisplay = true;
};
};
}