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

23 lines
473 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.nginx = {
enable = true;
virtualHosts."jellyfin.davies.home".locations."/".proxyPass = "http://localhost:8096/";
};
2024-11-26 08:40:00 +00:00
};
}