jellyfin
This commit is contained in:
parent
9817d1044f
commit
e9c2657d90
27
modules/server/media/jellyfin.nix
Normal file
27
modules/server/media/jellyfin.nix
Normal 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"; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue