cluster/services/warehouse: workaround for ffmpeg config bug

This commit is contained in:
Max Headroom 2023-08-29 00:23:47 +02:00
parent 9245b0909e
commit 6a4b07f036

View file

@ -24,7 +24,10 @@ with tools.nginx;
enable = true; enable = true;
package = pkgs.intel-media-driver; package = pkgs.intel-media-driver;
}; };
systemd.services.jellyfin.serviceConfig = { systemd.services.jellyfin = {
# if EncoderAppPath is manually set in the web UI, it can never be updated through --ffmpeg
preStart = "test ! -e /var/lib/jellyfin/config/encoding.xml || sed -i '/<EncoderAppPath>/d' /var/lib/jellyfin/config/encoding.xml";
serviceConfig = {
# allow access to GPUs for hardware transcoding # allow access to GPUs for hardware transcoding
DeviceAllow = lib.mkForce "char-drm"; DeviceAllow = lib.mkForce "char-drm";
BindPaths = lib.mkForce "/dev/dri"; BindPaths = lib.mkForce "/dev/dri";
@ -33,4 +36,5 @@ with tools.nginx;
Slice = "mediaplayback.slice"; Slice = "mediaplayback.slice";
}; };
};
} }