feat: Jellyfin media server

This commit is contained in:
Madeleine Sydney
2025-02-02 14:51:04 -07:00
parent 41029d72a0
commit 1b0d348533
6 changed files with 148 additions and 37 deletions

View File

@@ -0,0 +1,39 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.sydnix.deertopia.jellyfin;
in {
options = {
sydnix.deertopia.jellyfin = {
enable = mkEnableOption "Deertopia's Jellyfin media server";
};
};
config = mkIf cfg.enable {
sydnix.impermanence =
let jcfg = config.services.jellyfin;
in {
directories = [
jcfg.dataDir
jcfg.configDir
];
cache.directories = [
jcfg.cacheDir
];
};
services.jellyfin = {
enable = true;
openFirewall = true;
};
sydnix.deertopia.nginx.vhosts."watch".vhost = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8096"; # Uses default port.
};
};
};
}