Adding Elixir to your project
devbox add elixir
, or add the following to your devbox.json
devbox search elixir
. You can also search for Elixir on
Nixhub
Elixir Plugin Support
Devbox will automatically use the following configuration when you install Elixir withdevbox add
.
Environment Variables
$MIX_HOME
and $HEX_HOME
configure Mix/Hex to install artifacts locally, while $ERL_AFLAGS
enables shell history in iex
:
Disabling the Elixir Plugin
You can disable the Elixir plugin by runningdevbox add elixir --disable-plugin
, or by setting the
disable_plugin
field in your devbox.json
:
~/.mix/
and ~/.hex/
). This might actually be preferable if you’re developing
several Elixir projects and want to benefit from caching, but does defeat the isolation guarantees
of Devbox.
If the plugin is disabled, it’s recommended to manually set $ERL_AFLAGS
to preserve iex
shell
history: