temp add samba
This commit is contained in:
@@ -2,24 +2,40 @@
|
||||
|
||||
{
|
||||
# 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";
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.jellyfin
|
||||
pkgs.jellyfin-web
|
||||
pkgs.jellyfin-ffmpeg
|
||||
];
|
||||
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
user = "911";
|
||||
group = "1000";
|
||||
# dataDir = "/mnt/Safe\ SSD/ssd_app_data/jellyfin/config"; # defaults to /var/lib/jellyfin and cannot be changed....
|
||||
openFirewall = true;
|
||||
|
||||
};
|
||||
|
||||
# virtualisation.oci-containers.containers."jellyfin" = {
|
||||
# autoStart = true;
|
||||
# image = "linuxserver/jellyfin";
|
||||
# cmd = [ "--gpus all" ];
|
||||
# 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";
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user