26 lines
692 B
Nix
26 lines
692 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# Jellyfin
|
|
virtualisation.oci-containers.containers."jellyfin" = {
|
|
autoStart = true;
|
|
image = "linuxserver/jellyfin";
|
|
extraOptions = [ "--runtime=nvidia" ];
|
|
volumes = [
|
|
"/mnt/Safe\ SSD/ssd_app_data/jellyfin/config:/config"
|
|
"/mnt/Safe\ SSD/ssd_app_data/jellyfin/cache:/cache"
|
|
"/mnt/Safe\ SSD/ssd_app_data/jellyfin/log:/log"
|
|
"/mnt/Main\ Pool/Movies:/movies"
|
|
"/mnt/Main\ Pool/TV:/tv"
|
|
];
|
|
ports = [ "8096:8096" ];
|
|
environment = {
|
|
NVIDIA_VISIBLE_DEVICES = "all";
|
|
NVIDIA_DRIVER_CAPABILITIES = "compute,utility";
|
|
JELLYFIN_LOG_DIR = "/log";
|
|
PUID = "911";
|
|
PGID = "1000";
|
|
};
|
|
};
|
|
}
|