nix repl
starts an interactive environment for evaluating Nix expressions
https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-repl.html
Tips
-
To load a flake, use
:lf <flake-url>
nix repl
starts an interactive environment for evaluating Nix expressions
https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-repl.html
:lf <flake-url>
Nix expressions can be readily evaluated in the Nix repl. To start the repl, run nix repl
.
[!tip] You can use `nix repl` to explore the outputs of any flake, using TAB completion:
You can use nix repl to explore any flake’s output. In the repl session below, we locate and build the aeson
package:
Let’s evaluate it from the nix repl:
disko
disk partitioning
Let’s check that our final configuration is correct by using nix repl. In particular, we test the fileSystems
set by disko
: