streaming
Full streaming and automation stack containing:
- Sonarr: TV series PVR (automated episode downloads)
- Radarr: Movie manager/automator
- Bazarr: Subtitle downloader for Sonarr/Radarr
- Seerr: Media request/management UI
- Profilarr: Configuration Management Platform for Radarr/Sonarr
- Maintainerr: Library maintenance tool for Plex, Jellyfin and Emby
By default, the following services are enabled:
- Sonarr
- Radarr
- Bazarr
Additionally, the following services can be enabled (disabled by default):
- Seerr
- Profilarr
- Maintainerr
NOTE
The following services are provided by separate stacks:
- qBittorrent (with Gluetun and qui) — enabled by default via
nps.stacks.streaming.useQbittorrent = true - Prowlarr — enabled by default via
nps.stacks.streaming.useProwlarr = true - SABnzbd — disabled by default, enable with
nps.stacks.streaming.useSabnzbd = true
Examples
Base
{
nps.stacks.streaming = {
enable = true;
};
}Full
{config, ...}: {
nps.stacks.streaming = {
enable = true;
jellyfin = {
oidc = {
enable = true;
clientSecretFile = config.sops.secrets."jellyfin/authelia/client_secret".path;
};
};
profilarr.enable = true;
seerr.enable = true;
maintainerr.enable = true;
};
}Notes
By default, Jellyfin writes to /config/cache/transcodes for transcoding. This can cause a high amount of write operations on the underlying disk. To avoid this, you can optionally mount a tmpfs into the container:
{
nps.stacks.streaming = {
containers.jellyfin.extraPodmanArgs = [ "--tmpfs=/config/cache/transcodes:size=4G" ];
};
}Ram size to be determined on what you have available but 4G seems to be sufficient for most transcodes. Thanks to @Zer0PointModule for the hint.
Stack Options
nps.stacks.streaming.bazarr.db.passwordFile
The file containing the PostgreSQL password for the database. Only used if db.type is set to "postgres".
nps.stacks.streaming.bazarr.db.type
Type of the database to use.
Can be set to "sqlite" or "postgres".
If set to "postgres", the passwordFile option must be set.
nps.stacks.streaming.bazarr.db.username
The PostgreSQL user to use for the database. Only used if db.type is set to "postgres".
nps.stacks.streaming.bazarr.enable
Whether to enable bazarr.
nps.stacks.streaming.bazarr.extraEnv
Extra environment variables to set for the container. Variables can be either set directly or sourced from a file (e.g. for secrets).
attribute set of (null or boolean or signed integer or string or absolute path or (submodule))
{ }
nps.stacks.streaming.enable
Whether to enable streaming.
nps.stacks.streaming.jellyfin.enable
Whether to enable Jellyfin.
nps.stacks.streaming.jellyfin.oidc.adminGroup
Users of this group will be assigned admin rights in Jellyfin
nps.stacks.streaming.jellyfin.oidc.clientSecretFile
The file containing the client secret for the OIDC client that will be registered in Authelia.
For examples on how to generate a client secret, see
https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#client-secret
string
config.sops.secrets."immich/authelia/client_secret".path"
nps.stacks.streaming.jellyfin.oidc.clientSecretHash
The client secret hash. For examples on how to generate a client secret, see https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#client-secret
The value can be passed in multiple ways:
- As a literal string
- As an absolute path to a file containing the hash (
toFile) - As an absolute oath to a file containing the client_secret, in which case the hash will be automatically computed (
toHash) - As
null
If left unset (null), the client secret will be read from the file specified in the clientSecretFile option and hashed automatically before being passed to the Authelia container.
null or string or (submodule)
null
# Literal String:
"$pbkdf2-sha512$310000$cbOAIWbfz3vCVXIPIp6d2A$J0klwULa6TvPRCU1HAfuKua/dMKTl8gbTYJz2N73ejGUu0LUGz/y3kwmJLuKuAYGg3WQOT0q9ZzVHHUvpKpgvQ"
# Client secret hash stored in a file
{ fromFile = config.sops.secrets."immich/client_secret_hash".path; }
# Client secret stored in a file: Hash will be computed dynamically
{ toHash = config.sops.secrets."immich/client_secret".path; }
# Null (default): Hash will be computed automatically based on the clientSecretFile option
# Equivalent to { toHash = cfg.oidc.clientSecretFile; }
null
nps.stacks.streaming.jellyfin.oidc.enable
Whether to enable OIDC login with Authelia. This will register an OIDC client in Authelia and setup the necessary configuration file.
The plugin configuration will be automatically provided, the plugin itself has to be installed in the Jellyfin Web-UI tho.
For details, see:
nps.stacks.streaming.jellyfin.oidc.userGroup
Users of this group will be able to log in
nps.stacks.streaming.maintainerr.enable
Whether to enable Maintainerr.
nps.stacks.streaming.profilarr.enable
Whether to enable Profilarr.
nps.stacks.streaming.profilarr.enableParser
Whether to enable Profilarr Parser.
nps.stacks.streaming.profilarr.oidc.clientSecretFile
The file containing the client secret for the OIDC client that will be registered in Authelia.
For examples on how to generate a client secret, see
https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#client-secret
string
config.sops.secrets."immich/authelia/client_secret".path"
nps.stacks.streaming.profilarr.oidc.clientSecretHash
The client secret hash. For examples on how to generate a client secret, see https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#client-secret
The value can be passed in multiple ways:
- As a literal string
- As an absolute path to a file containing the hash (
toFile) - As an absolute oath to a file containing the client_secret, in which case the hash will be automatically computed (
toHash) - As
null
If left unset (null), the client secret will be read from the file specified in the clientSecretFile option and hashed automatically before being passed to the Authelia container.
null or string or (submodule)
null
# Literal String:
"$pbkdf2-sha512$310000$cbOAIWbfz3vCVXIPIp6d2A$J0klwULa6TvPRCU1HAfuKua/dMKTl8gbTYJz2N73ejGUu0LUGz/y3kwmJLuKuAYGg3WQOT0q9ZzVHHUvpKpgvQ"
# Client secret hash stored in a file
{ fromFile = config.sops.secrets."immich/client_secret_hash".path; }
# Client secret stored in a file: Hash will be computed dynamically
{ toHash = config.sops.secrets."immich/client_secret".path; }
# Null (default): Hash will be computed automatically based on the clientSecretFile option
# Equivalent to { toHash = cfg.oidc.clientSecretFile; }
null
nps.stacks.streaming.profilarr.oidc.enable
Whether to enable OIDC login with Authelia. This will register an OIDC client in Authelia and setup the necessary configuration.
For details, see:
nps.stacks.streaming.profilarr.oidc.userGroup
Users of this group will be able to log in
nps.stacks.streaming.radarr.db.passwordFile
The file containing the PostgreSQL password for the database. Only used if db.type is set to "postgres".
nps.stacks.streaming.radarr.db.type
Type of the database to use.
Can be set to "sqlite" or "postgres".
If set to "postgres", the passwordFile option must be set.
nps.stacks.streaming.radarr.db.username
The PostgreSQL user to use for the database. Only used if db.type is set to "postgres".
nps.stacks.streaming.radarr.enable
Whether to enable radarr.
nps.stacks.streaming.radarr.extraEnv
Extra environment variables to set for the container. Variables can be either set directly or sourced from a file (e.g. for secrets).
attribute set of (null or boolean or signed integer or string or absolute path or (submodule))
{ }
nps.stacks.streaming.seerr.enable
Whether to enable Seerr.
nps.stacks.streaming.sonarr.db.passwordFile
The file containing the PostgreSQL password for the database. Only used if db.type is set to "postgres".
nps.stacks.streaming.sonarr.db.type
Type of the database to use.
Can be set to "sqlite" or "postgres".
If set to "postgres", the passwordFile option must be set.
nps.stacks.streaming.sonarr.db.username
The PostgreSQL user to use for the database. Only used if db.type is set to "postgres".
nps.stacks.streaming.sonarr.enable
Whether to enable sonarr.
nps.stacks.streaming.sonarr.extraEnv
Extra environment variables to set for the container. Variables can be either set directly or sourced from a file (e.g. for secrets).
attribute set of (null or boolean or signed integer or string or absolute path or (submodule))
{ }
nps.stacks.streaming.useProwlarr
Whether to enable the Prowlarr stack and connect it to the streaming network. The Prowlarr stack runs standalone and is attached to the streaming network and Traefik.
nps.stacks.streaming.useQbittorrent
Whether to enable the qBittorrent stack and connect it to the streaming network. The qBittorrent stack (Gluetun, qBittorrent and qui) runs standalone and is attached to the streaming network and Traefik.
nps.stacks.streaming.useSabnzbd
Whether to enable the SABnzbd stack and connect it to the streaming network. The SABnzbd stack runs standalone and is attached to the streaming network and Traefik.
Container Aliases
nps.stacks.streaming.containers.bazarr
Alias of {option}services.podman.containers.bazarr.
nps.stacks.streaming.containers.jellyfin
Alias of {option}services.podman.containers.jellyfin.
nps.stacks.streaming.containers.maintainerr
Alias of {option}services.podman.containers.maintainerr.
nps.stacks.streaming.containers.profilarr
Alias of {option}services.podman.containers.profilarr.
nps.stacks.streaming.containers.profilarr-parser
Alias of {option}services.podman.containers.profilarr-parser.
nps.stacks.streaming.containers.radarr
Alias of {option}services.podman.containers.radarr.
nps.stacks.streaming.containers.seerr
Alias of {option}services.podman.containers.seerr.
nps.stacks.streaming.containers.sonarr
Alias of {option}services.podman.containers.sonarr.
