Towards Stateless Jellyfin #93
1 changed files with 11 additions and 7 deletions
|
@ -24,13 +24,17 @@ with tools.nginx;
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.intel-media-driver;
|
package = pkgs.intel-media-driver;
|
||||||
};
|
};
|
||||||
systemd.services.jellyfin.serviceConfig = {
|
systemd.services.jellyfin = {
|
||||||
# allow access to GPUs for hardware transcoding
|
# if EncoderAppPath is manually set in the web UI, it can never be updated through --ffmpeg
|
||||||
DeviceAllow = lib.mkForce "char-drm";
|
preStart = "test ! -e /var/lib/jellyfin/config/encoding.xml || sed -i '/<EncoderAppPath>/d' /var/lib/jellyfin/config/encoding.xml";
|
||||||
BindPaths = lib.mkForce "/dev/dri";
|
serviceConfig = {
|
||||||
# to allow restarting from web ui
|
# allow access to GPUs for hardware transcoding
|
||||||
Restart = lib.mkForce "always";
|
DeviceAllow = lib.mkForce "char-drm";
|
||||||
|
BindPaths = lib.mkForce "/dev/dri";
|
||||||
|
# to allow restarting from web ui
|
||||||
|
Restart = lib.mkForce "always";
|
||||||
|
|
||||||
Slice = "mediaplayback.slice";
|
Slice = "mediaplayback.slice";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue