{ config, pkgs, ... }: { # Jellyfin # Nix # 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; # }; # nix-docker # 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"; # }; # }; # Manual systemd.services.jellyfin-nvidia-docker = { path = [ pkgs.bash ]; script = '' set -e exec podman run \ --rm \ --gpus all \ --name='jellyfin' \ --log-driver=journald \ --cidfile=/run/podman-'jellyfin'.ctr-id \ --cgroups=no-conmon \ --sdnotify=conmon \ -d \ --replace \ -e 'JELLYFIN_LOG_DIR'='/log' \ -e 'NVIDIA_DRIVER_CAPABILITIES'='compute,utility' \ -e 'NVIDIA_VISIBLE_DEVICES'='all' \ -e 'PGID'='1000' \ -e 'PUID'='911' \ -p '8096:8096' \ -v '"/mnt/Safe\ SSD/nix_app_data/jellyfin/config":/config' \ -v '"/mnt/Safe\ SSD/nix_app_data/jellyfin/cache":/cache' \ -v '"/mnt/Safe\ SSD/nix_app_data/jellyfin/log":/log' \ -v '"/mnt/Main\ Pool/Movies":/movies' \ -v '"/mnt/Main\ Pool/TV":/tv' \ linuxserver/jellyfin \ ''; wantedBy = [ "multi-user.target" ]; }; }