blob: 1844296598449fe4393a5b5f346b9ff23a70ffdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
flake.modules.homeManager.jellyfin-mpv-shim =
{
lib,
...
}:
let
inherit (lib) optionalAttrs;
in
{
systemd.user.services.jellyfin-mpv-shim.Service.Environment = [
"ENABLE_HDR_WSI=1"
];
services.jellyfin-mpv-shim = {
enable = true;
settings = {
player_name = "mpv-shim";
allow_transcode_to_h256 = true;
};
mpvConfig = {
vo = "gpu-next";
gpu-api = "vulkan";
target-colorspace-hint = "yes";
target-peak = 500;
}
// (optionalAttrs false {
target-trc = "pq";
target-prim = "bt.2020";
#target-peak = 406;
#tone-mapping = "spline";
#tone-mapping-mode = "rgb";
inverse-tone-mapping = "yes";
});
};
};
}
|