MyNixOS website logo
option

services.traccar.environmentFile

File containing environment variables to substitute in the configuration before starting Traccar.

Can be used for storing the secrets without making them available in the world-readable Nix store.

For example, you can set services.traccar.settings.databasePassword = "$TRACCAR_DB_PASSWORD" and then specify TRACCAR_DB_PASSWORD="<secret>" in the environment file. This value will get substituted in the configuration file.

Declarations
Type
null or path
Default
null