1
Fork 0

Configure jellyfin

This commit is contained in:
prescientmoon 2024-04-28 00:25:22 +02:00
parent e10d57878c
commit 8c749b584d
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
4 changed files with 31 additions and 0 deletions

BIN
common/icons/jellyfin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 KiB

View file

@ -21,6 +21,7 @@
./services/radicale.nix ./services/radicale.nix
./services/ddclient.nix ./services/ddclient.nix
./services/redlib.nix ./services/redlib.nix
./services/jellyfin.nix
./filesystems ./filesystems
./hardware ./hardware
]; ];

View file

@ -144,6 +144,12 @@ in
logo = icon "commafeed.png"; logo = icon "commafeed.png";
url = "https://rss.moonythm.dev"; url = "https://rss.moonythm.dev";
} }
{
name = "Jellyfin";
subtitle = "Media server";
logo = icon "jellyfin.png";
url = "https://media.moonythm.dev";
}
]; ];
} }
# }}} # }}}

View file

@ -0,0 +1,24 @@
{ config, pkgs, ... }: {
imports = [ ../../common/optional/services/nginx.nix ];
services.nginx.virtualHosts."media.moonythm.dev" =
config.satellite.proxy 8096 { }; # This is the default port, and can only be changed via the GUI
services.jellyfin.enable = true;
# {{{ Storage
environment.persistence."/persist/state".directories = [{
directory = "/var/lib/jellyfin";
mode = "u=rwx,g=r,o=r";
user = config.services.jellyfin.user;
group = config.services.jellyfin.group;
}];
environment.persistence."/persist/local/cache".directories = [{
directory = "/var/cache/jellyfin";
mode = "u=rwx,g=,o=";
user = config.services.jellyfin.user;
group = config.services.jellyfin.group;
}];
# }}}
}