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