This commit is contained in:
Sakooooo 2025-01-03 01:00:26 +04:00
parent 9817d1044f
commit e9c2657d90
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.void.server.media.jellyfin;
in {
options.void.server.media.jellyfin = { enable = mkEnableOption false; };
config = mkIf cfg.enable {
users.groups.media = { };
services = {
jellyfin = {
enable = true;
group = "media";
};
nginx.virtualHosts = {
"jellyfin.sako.box" = {
forceSSL = true;
sslCertificate = "/srv/secrets/certs/sako.box.pem";
sslCertificateKey = "/srv/secrets/certs/sako.box-key.pem";
locations."/" = { proxyPass = "http://localhost:8096"; };
};
};
};
};
}