config/modules/nixos/sites/jellyfin/default.nix

38 lines
700 B
Nix
Raw Normal View History

2024-09-21 18:49:15 -04:00
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.sites.jellyfin;
in {
options.sites.jellyfin = with types; {
enable = mkBoolOpt false "Enable jellyfin";
};
config = mkIf cfg.enable {
services.jellyfin = {
enable = true;
openFirewall = true;
2025-03-22 16:03:07 -04:00
user = "zoey";
group = "users";
2024-09-21 18:49:15 -04:00
};
2025-03-22 16:03:07 -04:00
virtualisation.oci-containers = {
containers.jellyfin-vue = {
image = "ghcr.io/jellyfin/jellyfin-vue:unstable";
environment = {
"PUBLIC_JELLYFIN_API" = "http://localhost:8096";
};
ports = [
"8065:80"
];
};
};
networking.firewall.allowedTCPPorts = [8065];
2024-09-21 18:49:15 -04:00
};
}