Skip to content

Commit

Permalink
Move all device config to device.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
kottkrig committed Feb 1, 2020
1 parent 2530804 commit f41b00b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
16 changes: 0 additions & 16 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,6 @@ config :restid, :destinations, [

config :restid, target: Mix.target()

# Customize non-Elixir parts of the firmware. See
# https://hexdocs.pm/nerves/advanced-configuration.html for details.

config :nerves, :firmware, rootfs_overlay: "rootfs_overlay"

# Set the SOURCE_DATE_EPOCH date for reproducible builds.
# See https://reproducible-builds.org/docs/source-date-epoch/ for more information

config :nerves, source_date_epoch: "1578826697"

# Use Ringlogger as the logger backend and remove :console.
# See https://hexdocs.pm/ring_logger/readme.html for more information on
# configuring ring_logger.

config :logger, backends: [RingLogger]

targeting =
case Mix.target() do
:host -> :host
Expand Down
13 changes: 11 additions & 2 deletions config/device.exs
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
use Mix.Config

# Customize non-Elixir parts of the firmware. See
# https://hexdocs.pm/nerves/advanced-configuration.html for details.
config :nerves, :firmware, rootfs_overlay: "rootfs_overlay"

# Set the SOURCE_DATE_EPOCH date for reproducible builds.
# See https://reproducible-builds.org/docs/source-date-epoch/ for more information
config :nerves, source_date_epoch: "1578826697"

# Use Ringlogger as the logger backend and remove :console.
# See https://hexdocs.pm/ring_logger/readme.html for more information on
# configuring ring_logger.
config :logger, backends: [RingLogger]

config :shoehorn,
init: [:nerves_runtime, :nerves_init_gadget],
app: Mix.Project.config()[:app]

config :logger, backends: [RingLogger]

keys =
[
Path.join([System.user_home!(), ".ssh", "id_rsa.pub"]),
Expand Down

0 comments on commit f41b00b

Please sign in to comment.