excalidash
Self-hosted Excalidraw workspace with saved drawings, collections, real-time collaboration, and version history.
Example
{
config,
...
}: {
nps.stacks.excalidash = {
enable = true;
jwtSecretFile = config.sops.secrets."excalidash/jwt_secret".path;
csrfSecretFile = config.sops.secrets."excalidash/csrf_secret".path;
oidc = {
enable = true;
clientSecretFile = config.sops.secrets."excalidash/authelia/client_secret".path;
clientSecretHash = "$pbkdf2-sha512$...";
};
};
}Stack Options
nps.stacks.excalidash.csrfSecretFile
Path to the file containing the CSRF secret.
Generate with openssl rand -hex 32.
nps.stacks.excalidash.enable
Whether to enable excalidash.
nps.stacks.excalidash.extraEnv
Extra environment variables for the backend container. Supports fromFile, fromTemplate, fromCommand.
See https://excalidash.xyz/reference/environment#environment-reference
attribute set of (null or boolean or signed integer or string or absolute path or (submodule))
{ }
nps.stacks.excalidash.jwtSecretFile
Path to the file containing the JWT secret.
Generate with openssl rand -hex 32.
See https://excalidash.xyz/reference/environment#authentication
nps.stacks.excalidash.oidc.adminGroup
Users of this group will be granted admin rights via OIDC groups claim
nps.stacks.excalidash.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
absolute path
config.sops.secrets."immich/authelia/client_secret".path"
nps.stacks.excalidash.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.excalidash.oidc.enable
Whether to enable OIDC login with Authelia. This will register an OIDC client in Authelia and configure ExcaliDash for OIDC-only authentication (AUTH_MODE=oidc_enforced).
For details, see:
nps.stacks.excalidash.oidc.userGroup
Users must be a part of this group to be able to log in (enforced on Authelia level)
