1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-13 04:21:08 +01:00
home-manager/tests/modules/services/jellyfin-mpv-shim/example-settings.nix
Austin Horstman bbad45b7ea tests/jellyfin-mpv-shim: fix tests
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00

39 lines
944 B
Nix

{
services.jellyfin-mpv-shim = {
enable = true;
settings = {
allow_transcode_to_h265 = false;
always_transcode = false;
audio_output = "hdmi";
auto_play = true;
fullscreen = true;
player_name = "mpv-shim";
};
mpvBindings = {
WHEEL_UP = "seek 10";
WHEEL_DOWN = "seek -10";
"Alt+0" = "set window-scale 0.5";
};
mpvConfig = {
force-window = true;
ytdl-format = "bestvideo+bestaudio";
cache-default = 4000000;
};
};
nmt.script = ''
# FIXME:
# assertFileContent \
# home-files/.config/jellyfin-mpv-shim/conf.json \
# ${./example-settings-expected-settings}
assertFileContent \
home-files/.config/jellyfin-mpv-shim/mpv.conf \
${./example-settings-expected-config}
assertFileContent \
home-files/.config/jellyfin-mpv-shim/input.conf \
${./example-settings-expected-bindings}
'';
}