# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
use Mix.Config
require Logger

config :bootloader,
  overlay_path: "/tmp/erl_bootloader",
  init: [
    :nerves_firmware_http,
    :nerves_runtime,
    :cicada,
    :interface,
    :cloud_logger,
    :rosetta_home_radio_thermostat,
    #:rosetta_home_chromecast,
    #:rosetta_home_lifx,
    :rosetta_home_ieq_sensor,
    :rosetta_home_raven_smcd,
    :rosetta_home_meteo_stick,
    :rosetta_home_neurio
  ],
  app: :fw

config :nerves_network,
  regulatory_domain: "US"

config :sasl, errlog_type: :error

config :logger,
  backends: [:console],
  level: :info,
  compile_time_purge_level: :info


config :nerves, :firmware,
  rootfs_overlay: "config/rpi3/rootfs_overlay"

config :cipher,
  keyphrase: System.get_env("CIPHER_KEYPHRASE"),
  ivphrase: System.get_env("CIPHER_IV"),
  magic_token: System.get_env("CIPHER_TOKEN")

# Import target specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
# Uncomment to use target specific configurations

# import_config "#{Mix.Project.config[:target]}.exs"
