feat: add jellyfin

This commit is contained in:
Nickolaj Jepsen 2025-12-13 21:56:35 +01:00
parent d1d4082d56
commit 05199cf98e
2 changed files with 28 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./arr.nix
./flame.nix
./home-assistant.nix
./jellyfin.nix
./nextcloud.nix
./nginx.nix
./plex.nix

View file

@ -0,0 +1,27 @@
{
config,
lib,
...
}:
lib.mkIf config.fireproof.homelab.enable (let
domain = "jellyfin.nickolaj.com";
in {
services.restic.backups.homelab.paths = [config.services.jellyfin.dataDir];
services.nginx.virtualHosts."${domain}" = {
forceSSL = true;
enableACME = true;
http2 = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://localhost:8096/";
};
};
services.jellyfin = {
enable = true;
openFirewall = true;
user = "media";
group = "media";
};
})