Update modules/server/containers/apps/jellyfin.nix

This commit is contained in:
2026-05-13 17:31:19 +02:00
parent 78f01cf111
commit 18beb41cd8

View File

@@ -1,7 +1,7 @@
{ config, containerCfg, pkgs, lib, builder, name, ... }:
let
serverCfg = config.syscfg.server;
image = pkgs.dockerTools.streamLayeredImage {
image = pkgs.dockerTools.streamLayeredImage { # pkgs.dockerTools.buildImage{#
name = pkgs.jellyfin.name;
tag = pkgs.jellyfin.version;
contents = [
@@ -12,12 +12,7 @@ let
ExposedPorts = { "8096/tcp" = { }; };
};
};
#LDAP_DC_DOMAIN = "dc=ldap,dc=helcel,dc=net"
#HOST=...
#LDAP_BIND_USER=ldap-sa
#LDAP_BIND_PASSWORD=...
#LDAP_GROUP=flix
#LDAP_ADMIN=admin
in {
paths = [
{
@@ -34,6 +29,7 @@ in {
server = builder.mkContainer {
subdomain = containerCfg.subdomain;
imageStream = image;
# imageFile = image;
port = 8096;
# secret = name;
extraEnv = {
@@ -52,7 +48,7 @@ in {
"--logdir" "/config/log"
];
volumes = [
"${serverCfg.dataPath}:/media:ro"
"${serverCfg.dataPath}/media:/media:ro"
"${serverCfg.configPath}/jellyfin:/config"
];
# If you have an Intel/AMD GPU for transcoding, add the device:
@@ -60,4 +56,13 @@ in {
};
};
};
#LDAP_DC_DOMAIN = "dc=ldap,dc=helcel,dc=net"
#HOST=...
#LDAP_BIND_USER=ldap-sa
#LDAP_BIND_PASSWORD=...
#LDAP_GROUP=flix
#LDAP_ADMIN=admin
}