2024-11-26 08:40:00 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
2024-12-10 21:40:33 +00:00
|
|
|
with lib;
|
|
|
|
|
2024-11-26 08:40:00 +00:00
|
|
|
{
|
2024-12-10 21:40:33 +00:00
|
|
|
options.features.homelab.jellyfin.enable = mkEnableOption "Enable jellyfin";
|
2024-11-26 08:40:00 +00:00
|
|
|
|
2024-12-10 21:40:33 +00:00
|
|
|
config = mkIf config.features.homelab.jellyfin.enable {
|
2024-11-26 08:40:00 +00:00
|
|
|
services.jellyfin = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
2024-12-11 18:49:25 +00:00
|
|
|
group = "media";
|
2024-12-12 21:48:14 +00:00
|
|
|
configDir = "/mnt/media/jellyfin";
|
2024-11-26 08:40:00 +00:00
|
|
|
};
|
2024-12-15 23:13:11 +00:00
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-12-26 21:35:05 +00:00
|
|
|
virtualHosts."jellyfin.oliverdavies.uk".locations."/".proxyPass = "http://localhost:8096/";
|
2024-12-15 23:13:11 +00:00
|
|
|
};
|
2024-11-26 08:40:00 +00:00
|
|
|
};
|
|
|
|
}
|