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

17 lines
322 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 = "/media/jellyfin";
2024-11-26 08:40:00 +00:00
};
};
}