Skip to content

Commit 2a6ce6c

Browse files
committed
User username/password
1 parent 32b0f67 commit 2a6ce6c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

config/config.exs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use Mix.Config
99
# https://hexdocs.pm/nerves/advanced-configuration.html for details.
1010

1111
config :nerves, :firmware, rootfs_overlay: "rootfs_overlay"
12+
config :nerves_runtime, :kernel, use_system_registry: false
1213

1314
# Use shoehorn to start the main application. See the shoehorn
1415
# docs for separating out critical OTP applications such as those
@@ -45,7 +46,7 @@ keys =
4546
# """)
4647

4748
# config :nerves_firmware_ssh,
48-
# authorized_keys: Enum.map(keys, &File.read!/1)
49+
# authorized_keys: Enum.map(keys, &File.read!/1)
4950

5051
# Configure nerves_init_gadget.
5152
# See https://hexdocs.pm/nerves_init_gadget/readme.html for more information.
@@ -59,7 +60,8 @@ config :nerves_init_gadget,
5960
address_method: :dhcpd,
6061
mdns_domain: "nerves.local",
6162
node_name: node_name,
62-
node_host: :mdns_domain
63+
node_host: :mdns_domain,
64+
ssh_user_passwords: [{"circuits", "circuits"}]
6365

6466
# Import target specific config. This must remain at the bottom
6567
# of this file so it overrides the configuration defined above.

mix.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ defmodule CircuitsQuickstart.MixProject do
4747

4848
# Dependencies for all targets except :host
4949
{:nerves_runtime, "~> 0.6", targets: @all_targets},
50-
{:nerves_init_gadget, "~> 0.4", targets: @all_targets},
50+
{:nerves_init_gadget, "~> 0.4",
51+
github: "nerves-project/nerves_init_gadget", branch: "user_password", targets: @all_targets},
5152

5253
# Dependencies for specific targets
5354
{:nerves_system_rpi, "~> 1.6", runtime: false, targets: :rpi},

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"mdns": {:hex, :mdns, "1.0.2", "c8228dd44d3fdd55e9842cb7111c9145f2eeaa8b7adac75012ee0e250962215e", [:mix], [{:dns, "~> 2.0", [hex: :dns, repo: "hexpm", optional: false]}], "hexpm"},
1111
"nerves": {:hex, :nerves, "1.4.3", "95cf9aa05c2ef4cbbfffeb5583684042ea1beb2ec696b19d57067aa030ec8b53", [:mix], [{:distillery, "2.0.12", [hex: :distillery, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm"},
1212
"nerves_firmware_ssh": {:hex, :nerves_firmware_ssh, "0.4.2", "315b515b872b7a4f18ae1bc37f7943064dfda984ec5ec4a6111b9d69adecee2e", [:mix], [{:nerves_runtime, "~> 0.4", [hex: :nerves_runtime, repo: "hexpm", optional: false]}], "hexpm"},
13-
"nerves_init_gadget": {:hex, :nerves_init_gadget, "0.6.0", "64eb8877b438678aed6d421737326a8cac3810b425e00abd5c7a3a0e95054988", [:mix], [{:mdns, "~> 1.0", [hex: :mdns, repo: "hexpm", optional: false]}, {:nerves_firmware_ssh, "~> 0.2", [hex: :nerves_firmware_ssh, repo: "hexpm", optional: false]}, {:nerves_network, "~> 0.3", [hex: :nerves_network, repo: "hexpm", optional: false]}, {:nerves_runtime, "~> 0.3", [hex: :nerves_runtime, repo: "hexpm", optional: false]}, {:one_dhcpd, "~> 0.1", [hex: :one_dhcpd, repo: "hexpm", optional: false]}, {:ring_logger, "~> 0.4", [hex: :ring_logger, repo: "hexpm", optional: false]}], "hexpm"},
13+
"nerves_init_gadget": {:git, "https://github.com/nerves-project/nerves_init_gadget.git", "f5f7c741292092d0a5a0d3d835d26ac790929509", [branch: "user_password"]},
1414
"nerves_network": {:hex, :nerves_network, "0.5.5", "4690c362707f76c4072810bd9639b2ae8eb7dd9c21119656308b462a087230aa", [:make, :mix], [{:elixir_make, "~> 0.5", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:nerves_network_interface, "~> 0.4.4", [hex: :nerves_network_interface, repo: "hexpm", optional: false]}, {:nerves_wpa_supplicant, "~> 0.5", [hex: :nerves_wpa_supplicant, repo: "hexpm", optional: false]}, {:one_dhcpd, "~> 0.2.0", [hex: :one_dhcpd, repo: "hexpm", optional: false]}, {:system_registry, "~> 0.7", [hex: :system_registry, repo: "hexpm", optional: false]}], "hexpm"},
1515
"nerves_network_interface": {:hex, :nerves_network_interface, "0.4.6", "d50e57daca8154f0f780fd98eb5ae94a005579e0d72d69840e80e228375d88ad", [:make, :mix], [{:elixir_make, "~> 0.5", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm"},
1616
"nerves_runtime": {:hex, :nerves_runtime, "0.9.5", "029ae154c8a85c5c4dc0dfcc5c2be976982fc6007426d8bb631726f1625adfce", [:make, :mix], [{:elixir_make, "~> 0.5", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:system_registry, "~> 0.5", [hex: :system_registry, repo: "hexpm", optional: false]}, {:uboot_env, "~> 0.1", [hex: :uboot_env, repo: "hexpm", optional: false]}], "hexpm"},

0 commit comments

Comments
 (0)