2020-08-15 00:18:21 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2021-05-27 12:38:34 +02:00
|
|
|
{
|
2020-08-15 00:18:21 +02:00
|
|
|
services.jellyfin.enable = true;
|
2021-05-27 12:38:34 +02:00
|
|
|
services.jellyfin.group = "media";
|
2021-05-27 11:24:03 +02:00
|
|
|
services.jellyfin.openFirewall = true;
|
2020-10-07 02:03:02 +02:00
|
|
|
|
|
|
|
# for hardware acceleration
|
2021-05-27 12:38:34 +02:00
|
|
|
users.users.jellyfin.extraGroups = [ "video" "render" ];
|
2021-05-27 11:24:03 +02:00
|
|
|
|
|
|
|
services.nginx = {
|
2021-05-27 12:29:17 +02:00
|
|
|
virtualHosts."media.felschr.com" = {
|
2021-05-27 11:24:03 +02:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/".proxyPass = "http://localhost:8096";
|
|
|
|
};
|
|
|
|
};
|
2020-08-15 00:18:21 +02:00
|
|
|
}
|