nixos/modules/server/media/jellyfin.nix

28 lines
640 B
Nix
Raw Normal View History

2025-01-03 01:00:26 +04:00
{ 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"; };
};
};
};
};
}