     [:config, :network_interface, "wlan0", :psk]
   ]
 
+# Configure the default interface settings.
+# wlan0 | eth0 - Used to establish a connection to the test server.
+# usb0 - configured with linklocal to be validated as part of the test results.
 config :nerves_network, :default,
   eth0: [
     ipv4_address_method: :dhcp

use Mix.Config

system = :nerves_system_rpi0
platform = "rpi0"
arch = "arm"

test_server = System.get_env("NERVES_TEST_SERVER")
network_interface = System.get_env("NERVES_NETWORK_INTERFACE") || "usb0"
websocket_protocol = System.get_env("WEBSOCKET_PROTOCOL") || "ws"

config :bootloader,
  app: :nerves_system_test,
  init: [:nerves_runtime, :nerves_network]

config :nerves_system_test, :firmware,
  public_key: System.get_env("NERVES_FW_PUB_KEY")

config :system_registry, SystemRegistry.TermStorage,
  path: "/root/system_registry",
  scopes: [

    {:nerves_system_test, :priv_dir, "test"}
  ]

# The configuration stored here is duplicated from the project so it can be
#  validated by nerves_system_test because the source is unavailable at runtime.
config :nerves_runtime, :kv,
  nerves_fw_application_part0_devpath: app_part_devparth,
  nerves_fw_application_part0_fstype: "ext4",
  nerves_fw_application_part0_target: "/root",
  nerves_fw_architecture: arch,
