home/mpv: misc config

This commit is contained in:
Oystein Kristoffer Tveit 2025-03-24 11:12:11 +01:00
parent 5cebcf6a60
commit 2d3e7f8825
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

@ -1,4 +1,16 @@
{ machineVars, ... }:
{ config, lib, machineVars, ... }:
{
programs.mpv.enable = !machineVars.headless;
}
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";
};
};
}