home/mpv: misc config
This commit is contained in:
parent
5cebcf6a60
commit
2d3e7f8825
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user