R""(

Note: this command's interface is based heavily around installables, which you may want to read about first (nix --help).

This command provides an interactive environment for evaluating Nix expressions. (REPL stands for 'read–eval–print loop'.)

On startup, it loads the Nix expressions named files and adds them into the lexical scope. You can load addition files using the :l <filename> command, or reload all files using :r.

It is possible to automatically load variables from a list of files into each new REPL session using the repl-overlays configuration option.

Each file should contain a Nix function taking three taking and returning an attribute set. These three arguments are:

  1. An attribute set containing at least a currentSystem attribute (this is identical to builtins.currentSystem, except that it's available in pure-eval mode).
  2. The final top-level bindings produced by calling all repl-overlays.
  3. The top-level bindings produced by the previous repl-overlays value (or the default top-level bindings).

See the nix.conf repl-overlays documentation for more information.

)""