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

38 lines
925 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 = ''
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}
'';
}