dotfiles/nix/modules/nixos/features/homelab/jellyfin.nix
2024-12-16 00:09:43 +00:00

23 lines
473 B
Nix

{ config, lib, ... }:
with lib;
{
options.features.homelab.jellyfin.enable = mkEnableOption "Enable jellyfin";
config = mkIf config.features.homelab.jellyfin.enable {
services.jellyfin = {
enable = true;
openFirewall = true;
group = "media";
configDir = "/mnt/media/jellyfin";
};
services.nginx = {
enable = true;
virtualHosts."jellyfin.davies.home".locations."/".proxyPass = "http://localhost:8096/";
};
};
}