mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 12:31:55 -05:00
23 lines
643 B
Nix
23 lines
643 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.alyraffauf.containers.oci.jellyfin.enable {
|
|
virtualisation.oci-containers.containers = {
|
|
jellyfin = {
|
|
ports = ["0.0.0.0:${toString config.alyraffauf.containers.oci.jellyfin.port}:8096"];
|
|
image = "jellyfin/jellyfin";
|
|
environment = {TZ = "America/New_York";};
|
|
volumes = [
|
|
"jellyfin_config:/config"
|
|
"jellyfin_cache:/cache"
|
|
"${config.alyraffauf.containers.oci.jellyfin.mediaDirectory}:/Media"
|
|
"${config.alyraffauf.containers.oci.jellyfin.archiveDirectory}:/Archive"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|