Skip to content

aiostreams

Example

nix
{config, ...}:{
  aiostreams = {
    enable = true;
    secretKeyFile = config.sops.secrets."aiostreams/secret_key".path;
    extraEnv = {
      TMDB_ACCESS_TOKEN.fromFile = config.sops.secrets."aiostreams/tmdb_access_token".path;
    };
  };
}

Stack Options

nps.stacks.aiostreams.containers.aiostreams

Alias of {option}services.podman.containers.aiostreams.

Type
plaintext
submodule
Declaration

nps.stacks.aiostreams.enable

Whether to enable aiostreams.

Type
plaintext
boolean
Default
nix
false
Example
nix
true
Declaration

nps.stacks.aiostreams.extraEnv

Extra environment variables to set for the container. Can be used to pass secrets such as the TMDB_ACCESS_TOKEN.

See https://github.com/Viren070/AIOStreams/wiki/Configuration

Type
plaintext
attribute set of (null or boolean or signed integer or string or absolute path or (submodule))
Default
nix
{ }
Example
nix
{
  FOO = "bar";
  TMDB_ACCESS_TOKEN = {
    fromFile = "/run/secrets/tmdb_access_token";
  };
}
Declaration

nps.stacks.aiostreams.secretKeyFile

Path to the file containing the secret key. Must be a 64-character hex string. Can be generated using openssl rand -hex 32

See https://github.com/outline/outline/blob/main/.env.sample

Type
plaintext
absolute path
Declaration