Update modules/server/containers/apps/jellyfin.nix
This commit is contained in:
@@ -27,12 +27,7 @@ let
|
||||
in {
|
||||
paths = [
|
||||
{
|
||||
path = "${serverCfg.dataPath}/media/";
|
||||
owner = "1000:1000";
|
||||
mode = "0755";
|
||||
}
|
||||
{
|
||||
path = "${serverCfg.configPath}/jellyfin/";
|
||||
path = "${serverCfg.path.config}/jellyfin/";
|
||||
owner = "1000:1000";
|
||||
mode = "0755";
|
||||
}
|
||||
@@ -60,8 +55,8 @@ in {
|
||||
"--logdir" "/config/log"
|
||||
];
|
||||
volumes = [
|
||||
"${serverCfg.dataPath}/media:/media:ro"
|
||||
"${serverCfg.configPath}/jellyfin:/config"
|
||||
"${serverCfg.path.film}:/media:ro"
|
||||
"${serverCfg.path.config}/jellyfin:/config"
|
||||
];
|
||||
# If you have an Intel/AMD GPU for transcoding, add the device:
|
||||
devices = lib.optionals (builtins.pathExists "/dev/dri") [ "/dev/dri:/dev/dri" ];
|
||||
@@ -169,7 +164,7 @@ in {
|
||||
fi
|
||||
''}
|
||||
|
||||
${pkgs.sqlite}/bin/sqlite3 ${serverCfg.configPath}/jellyfin/data/data/jellyfin.db <<EOF
|
||||
${pkgs.sqlite}/bin/sqlite3 ${serverCfg.path.config}/jellyfin/data/data/jellyfin.db <<EOF
|
||||
INSERT OR IGNORE INTO ApiKeys (Id, AccessToken, Name, DateCreated, DateLastActivity)
|
||||
VALUES ( 1, "$HOMEPAGE_VAR_JELLYFIN_API", 'Home', strftime('%Y-%m-%d %H:%M:%S', 'now'), strftime('%Y-%m-%d %H:%M:%S', 'now'));
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user