MyNixOS website logo
option

services.traccar.settings

config.xml configuration as a Nix attribute set. This option is ignored if settingsFile is set.

Nested attributes get translated to a properties entry in the traccar configuration. For instance: mail.smtp.port = "25" results in the following entry: <entry key='mail.smtp.port'>25</entry>

Secrets should be specified using environmentFile instead of this world-readable attribute set. Traccar - Configuration File.

Declarations
Type
unspecified value
Default
{
  database = {
    driver = "org.h2.Driver";
    password = "";
    url = "jdbc:h2:/var/lib/traccar/traccar";
    user = "sa";
  };
  logger = {
    console = "true";
  };
  media = {
    path = "/var/lib/traccar/media";
  };
  templates = {
    root = "/var/lib/traccar/templates";
  };
}