diff --git a/home/programs/mpv.nix b/home/programs/mpv.nix index 48cd57a..69773db 100644 --- a/home/programs/mpv.nix +++ b/home/programs/mpv.nix @@ -1,4 +1,16 @@ -{ machineVars, ... }: +{ config, lib, machineVars, ... }: { - programs.mpv.enable = !machineVars.headless; -} \ No newline at end of file + programs.mpv = { + enable = !machineVars.headless; + + config = { + screenshot-directory = "${config.xdg.userDirs.pictures}/mpv-screenshots"; + + #https://wiki.nixos.org/wiki/Accelerated_Video_Playback + hwdec = "auto-safe"; + vo = "gpu"; + profile = "gpu-hq"; + gpu-context = lib.mkIf machineVars.wayland "wayland"; + }; + }; +}