Skip to content

anchor ​

Offline-first, self-hostable note-taking application

Example ​

nix
nps.stacks.anchor = {
  enable = true;
  oidc.enable = true;
};

Stack Options ​

nps.stacks.anchor.db.passwordFile ​

The file containing the PostgreSQL password. Only used when db.type is set to "postgres".

Type
plaintext
absolute path
Declaration

nps.stacks.anchor.db.type ​

Type of database to use

Type
plaintext
one of "embedded", "postgres"
Default
nix
"embedded"
Declaration

nps.stacks.anchor.enable ​

Whether to enable anchor.

Type
plaintext
boolean
Default
nix
false
Example
nix
true
Declaration

nps.stacks.anchor.extraEnv ​

Extra environment variables to set for the container. Variables can be either set directly or sourced from a file (e.g. for secrets).

Type
plaintext
attribute set of (null or boolean or signed integer or string or absolute path or (submodule))
Default
nix
{ }
Declaration

nps.stacks.anchor.oidc.enable ​

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

See https://github.com/zhfahim/anchor?tab=readme-ov-file#oidc-authentication

Type
plaintext
boolean
Default
nix
false
Declaration

nps.stacks.anchor.oidc.userGroup ​

Users of this group will be able to log in

Type
plaintext
string
Default
nix
"anchor_user"
Declaration

Container Aliases ​

nps.stacks.anchor.containers.anchor ​

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

Type
plaintext
submodule
Declaration

nps.stacks.anchor.containers.anchor-db ​

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

Type
plaintext
submodule
Declaration