OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
HASH      77ca6cb9ca19
DATE      2025-05-01
SUBJECT   ookflix: bump jellyfin version
FILES     2 CHANGED
HASH      77ca6cb9ca19
DATE      2025-05-01
SUBJECT   ookflix: bump jellyfin version
FILES     2 CHANGED
 

diff --git a/modules/nixos/hardware/gpu/nvidia.nix b/modules/nixos/hardware/gpu/nv
idia.nix
index cb0dd87..036dc19 100644
--- a/modules/nixos/hardware/gpu/nvidia.nix
+++ b/modules/nixos/hardware/gpu/nvidia.nix
@@ -5,6 +5,7 @@
   ...
 }: let
   inherit (config.ooknet.hardware) gpu;
+  inherit (config.ooknet.host) role;
   inherit (lib) mkIf mkDefault;
   inherit (builtins) attrValues;
   # production = config.boot.kernelPackages.nvidiaPackages.production;
@@ -19,7 +20,7 @@ in {
         package = beta;
         forceFullCompositionPipeline = true;
         nvidiaSettings = false;
-        nvidiaPersistenced = true;
+        nvidiaPersistenced = role == "server";
         modesetting.enable = true;
         powerManagement = {
           enable = mkDefault false;

diff --git a/modules/nixos/hardware/gpu/nvid
ia.nix b/modules/nixos/hardware/gpu/nvidia.n
ix
index cb0dd87..036dc19 100644
--- a/modules/nixos/hardware/gpu/nvidia.nix
+++ b/modules/nixos/hardware/gpu/nvidia.nix
@@ -5,6 +5,7 @@
   ...
 }: let
   inherit (config.ooknet.hardware) gpu;
+  inherit (config.ooknet.host) role;
   inherit (lib) mkIf mkDefault;
   inherit (builtins) attrValues;
   # production = config.boot.kernelPackages
.nvidiaPackages.production;
@@ -19,7 +20,7 @@ in {
         package = beta;
         forceFullCompositionPipeline = true
;
         nvidiaSettings = false;
-        nvidiaPersistenced = true;
+        nvidiaPersistenced = role == "serve
r";
         modesetting.enable = true;
         powerManagement = {
           enable = mkDefault false;
 

diff --git a/modules/nixos/server/services/ookflix/streamers/jellyfin.nix b/module
s/nixos/server/services/ookflix/streamers/jellyfin.nix
index 46ba406..e7650c1 100644
--- a/modules/nixos/server/services/ookflix/streamers/jellyfin.nix
+++ b/modules/nixos/server/services/ookflix/streamers/jellyfin.nix
@@ -7,7 +7,7 @@
 }: let
   ookflixLib = import ../lib.nix {inherit lib config self;};
   inherit (ookflixLib) mkServiceStateDir mkServiceUser;
-  inherit (lib) mkIf optionalAttrs;
+  inherit (lib) optional mkIf optionalAttrs;
   inherit (ook.lib.container) mkContainerLabel mkContainerEnvironment mkContainer
Port;
   inherit (config.ooknet.server.ookflix) volumes services groups gpuAcceleration;
   inherit (config.ooknet.server.ookflix.services) jellyfin;
@@ -20,7 +20,7 @@ in {
       # media streaming server
       # docs: <https://docs.linuxserver.io/images/docker-jellyfin/>
       jellyfin = {
-        image = "lscr.io/linuxserver/jellyfin:latest";
+        image = "lscr.io/linuxserver/jellyfin:10.10.7";
         autoStart = true;
         hostname = "jellyfin";
         ports = [(mkContainerPort jellyfin.port)];
@@ -36,11 +36,18 @@ in {
             description = "media-server streamer";
           };
         };
+        extraOptions =
+          if gpuAcceleration.enable
+          then [
+            "--gpus=all"
+          ]
+          else [];
         environment =
           mkContainerEnvironment jellyfin.user.id groups.media.id
           // {JELLYFIN_PublishedServerUrl = jellyfin.domain;}
           // optionalAttrs (gpuAcceleration.enable && gpuAcceleration.type == "nv
idia") {
             NVIDIA_VISIBLE_DEVICES = "all";
+            NVIDIA_DRIVER_CAPABILITIES = "all";
           };
       };
     };

diff --git a/modules/nixos/server/services/o
okflix/streamers/jellyfin.nix b/modules/nixo
s/server/services/ookflix/streamers/jellyfin
.nix
index 46ba406..e7650c1 100644
--- a/modules/nixos/server/services/ookflix/
streamers/jellyfin.nix
+++ b/modules/nixos/server/services/ookflix/
streamers/jellyfin.nix
@@ -7,7 +7,7 @@
 }: let
   ookflixLib = import ../lib.nix {inherit l
ib config self;};
   inherit (ookflixLib) mkServiceStateDir mk
ServiceUser;
-  inherit (lib) mkIf optionalAttrs;
+  inherit (lib) optional mkIf optionalAttrs
;
   inherit (ook.lib.container) mkContainerLa
bel mkContainerEnvironment mkContainerPort;
   inherit (config.ooknet.server.ookflix) vo
lumes services groups gpuAcceleration;
   inherit (config.ooknet.server.ookflix.ser
vices) jellyfin;
@@ -20,7 +20,7 @@ in {
       # media streaming server
       # docs: <https://docs.linuxserver.io/
images/docker-jellyfin/>
       jellyfin = {
-        image = "lscr.io/linuxserver/jellyf
in:latest";
+        image = "lscr.io/linuxserver/jellyf
in:10.10.7";
         autoStart = true;
         hostname = "jellyfin";
         ports = [(mkContainerPort jellyfin.
port)];
@@ -36,11 +36,18 @@ in {
             description = "media-server str
eamer";
           };
         };
+        extraOptions =
+          if gpuAcceleration.enable
+          then [
+            "--gpus=all"
+          ]
+          else [];
         environment =
           mkContainerEnvironment jellyfin.u
ser.id groups.media.id
           // {JELLYFIN_PublishedServerUrl =
 jellyfin.domain;}
           // optionalAttrs (gpuAcceleration
.enable && gpuAcceleration.type == "nvidia")
 {
             NVIDIA_VISIBLE_DEVICES = "all";
+            NVIDIA_DRIVER_CAPABILITIES = "a
ll";
           };
       };
     };
 
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET