jellyfin: Pass through graphics card
This commit is contained in:
parent
56cbc557fb
commit
98fd6d9fb1
1 changed files with 19 additions and 0 deletions
|
|
@ -1,11 +1,29 @@
|
||||||
{
|
{
|
||||||
containers.jellyfin = {
|
containers.jellyfin = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
|
allowedDevices = [
|
||||||
|
{
|
||||||
|
node = "/dev/dri/card0";
|
||||||
|
modifier = "rw";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
node = "/dev/dri/renderD128";
|
||||||
|
modifier = "rw";
|
||||||
|
}
|
||||||
|
];
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
"/media" = {
|
"/media" = {
|
||||||
hostPath = "/mnt/sdb1/media";
|
hostPath = "/mnt/sdb1/media";
|
||||||
isReadOnly = false;
|
isReadOnly = false;
|
||||||
};
|
};
|
||||||
|
"/dev/dri/card0" = {
|
||||||
|
hostPath = "/dev/dri/card0";
|
||||||
|
isReadOnly = false;
|
||||||
|
};
|
||||||
|
"/dev/dri/renderD128" = {
|
||||||
|
hostPath = "/dev/dri/renderD128";
|
||||||
|
isReadOnly = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config =
|
||||||
|
|
@ -28,6 +46,7 @@
|
||||||
jellyfin
|
jellyfin
|
||||||
jellyfin-web
|
jellyfin-web
|
||||||
jellyfin-ffmpeg
|
jellyfin-ffmpeg
|
||||||
|
libva-utils
|
||||||
];
|
];
|
||||||
|
|
||||||
## Hardware transcoding
|
## Hardware transcoding
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue