Skip to content

immich

Example

nix
{config, lib, ...}: {
  immich = {
    enable = true;

    oidc = {
      enable = true;
      clientSecretFile = config.sops.secrets."immich/authelia/client_secret".path;
      clientSecretHash = "$pbkdf2-sha512$...";
    };
    db.passwordFile = config.sops.secrets."immich/db_password".path;

    settings = {
      oauth.autoLaunch = true;
      passwordLogin.enabled = false;
    };
  };
}

Stack Options

nps.stacks.immich.containers.immich

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

Type
plaintext
submodule
Declaration

nps.stacks.immich.containers.immich-db

Alias of {option}services.podman.containers.immich-db.

Type
plaintext
submodule
Declaration

nps.stacks.immich.containers.immich-machine-learning

Alias of {option}services.podman.containers.immich-machine-learning.

Type
plaintext
submodule
Declaration

nps.stacks.immich.containers.immich-redis

Alias of {option}services.podman.containers.immich-redis.

Type
plaintext
submodule
Declaration

nps.stacks.immich.db.passwordFile

Path to the file containing the database password

Type
plaintext
absolute path
Declaration

nps.stacks.immich.enable

Whether to enable immich.

Type
plaintext
boolean
Default
nix
false
Example
nix
true
Declaration

nps.stacks.immich.oidc.adminGroup

Users of this group will be assigned admin rights in Immich. The role is only used on user creation and not synchronized after that.

See https://immich.app/docs/administration/oauth/

Type
plaintext
string
Default
nix
"immich_admin"
Declaration

nps.stacks.immich.oidc.clientSecretFile

Path to the file containing that client secret that will be used to authenticate against Authelia.

Type
plaintext
absolute path
Declaration

nps.stacks.immich.oidc.clientSecretHash

The hashed client_secret. Will be set in the Authelia client config. For examples on how to generate a client secret, see

https://www.authelia.com/integration/openid-connect/frequently-asked-questions/#client-secret

Type
plaintext
string
Declaration

nps.stacks.immich.oidc.enable

Whether to enable OIDC login with Authelia. This will register an OIDC client in Authelia and setup the necessary configuration in Immich.

For details, see:

Type
plaintext
boolean
Default
nix
false
Declaration

nps.stacks.immich.oidc.userGroup

Users of this group will be able to log in to Immich

Type
plaintext
string
Default
nix
"immich_user"
Declaration

nps.stacks.immich.settings

Settings that will be written to the 'config.json' file. If you want to configure settings through the UI, set this option to null. In that case, no managed config.json will be provided.

For details to the config file see https://immich.app/docs/install/config-file/

Type
plaintext
null or JSON value
Declaration