Files
nixos-config/home/packages/media/mpv.nix
T
2026-03-31 16:53:11 +02:00

34 lines
628 B
Nix

{
pkgs,
lib,
...
}:
let
configFile = "mpv/mpv.conf";
mpvInputFile = "mpv/input.conf";
in
{
users.users.someone.packages = with pkgs; [
mpv
mpvScripts.mpris
];
xdg.configFile."${configFile}".text =
lib.generators.toKeyValue {
mkKeyValue = k: v:
"${lib.escapeShellArg k}=${lib.escapeShellArg v}";
listsAsDuplicateKeys = true;
} {
profile = "gpu-hq";
volume = "100";
};
xdg.configFile."${mpvInputFile}".text = ''
l af add @pan:stereo|c0=c0|c1=c0
r af add @pan:stereo|c0=c1|c1=c1
c show-text "Chapters:\n''${chapter-list}"
s ignore
'';
}