dotfiles/nix/modules/nixos/features/homelab/jellyfin.nix

23 lines
481 B
Nix
Raw Normal View History

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;
group = "media";
configDir = "/mnt/media/jellyfin";
2024-11-26 08:40:00 +00:00
};
services.caddy.virtualHosts."jellyfin.opdavies.uk" = {
useACMEHost = "opdavies.uk";
extraConfig = "reverse_proxy localhost:8096";
};
2024-11-26 08:40:00 +00:00
};
}