Files
nixos-config/home/packages/media/mpv.nix
T
jory c5f771bd53
CI / Formatting check (x86_64-linux) (push) Has been cancelled
CI / Flake check (aarch64-linux) (push) Has been cancelled
CI / Flake check (x86_64-linux) (push) Has been cancelled
CI / Formatting check (aarch64-linux) (push) Has been cancelled
Added hetzner server configs
2026-07-11 20:28:51 +02:00

30 lines
616 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
'';
}