services.monica.config
monica configuration options to set in the .env file.
Refer to for details on supported values.
Settings containing secret data should be set to an attribute set containing the attribute _secret - a string pointing to a file containing the value the option should be set to. See the example to get a better picture of this: in the resulting .env file, the OIDC_CLIENT_SECRET key will be set to the contents of the /run/keys/oidc_secret file.
- Type
attribute set of (null or boolean or signed integer or 16 bit unsigned integer; between 0 and 65535 (both inclusive) or absolute path or string or (submodule))- Default
{ }- Example
'' { ALLOWED_IFRAME_HOSTS = "https://example.com"; WKHTMLTOPDF = "/home/user/bins/wkhtmltopdf"; AUTH_METHOD = "oidc"; OIDC_NAME = "MyLogin"; OIDC_DISPLAY_NAME_CLAIMS = "name"; OIDC_CLIENT_ID = "monica"; OIDC_CLIENT_SECRET = {_secret = "/run/keys/oidc_secret"}; OIDC_ISSUER = "https://keycloak.example.com/auth/realms/My%20Realm"; OIDC_ISSUER_DISCOVER = true; } ''- Declared
- <nixpkgs/nixos/modules/services/web-apps/monica.nix>