How to make rebar3 use erlang_27?

I noticed that rebar3 uses the nixos default erlang version 25 as a dependency. However, i’ve installed erlang_27 and would like rebar3 to use this version and not install erlang_25.

How can i do that?

Both can be done already:

beam_nox.interpreters.erlang_27 (nox version without wxwidgets but also without other features)
beam.packages.erlang_27.rebar3 (rebar3 version with erlang_27 as a dependency)

Credit goes to @xanderio