doc: fix nix repl command in NixOS manual

(cherry picked from commit 7f707274cf)
This commit is contained in:
Bart Louwers
2026-04-03 12:03:37 +02:00
committed by github-actions[bot]
parent cd0c9bad57
commit 795b800feb
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ Each supported language or software ecosystem has its own package set named `<la
# Navigate Java compiler variants in `javaPackages` with `nix repl`
```shell-session
$ nix repl '<nixpkgs>' -I nixpkgs=channel:nixpkgs-unstable
$ nix repl -f '<nixpkgs>' -I nixpkgs=channel:nixpkgs-unstable
nix-repl> javaPackages.<tab>
javaPackages.compiler javaPackages.openjfx15 javaPackages.openjfx21 javaPackages.recurseForDerivations
javaPackages.jogl_2_4_0 javaPackages.openjfx17 javaPackages.openjfx25

View File

@@ -113,7 +113,7 @@ Interactive exploration of the configuration is possible using `nix
repl`, a read-eval-print loop for Nix expressions. A typical use:
```ShellSession
$ nix repl '<nixpkgs/nixos>'
$ nix repl -f '<nixpkgs/nixos>'
nix-repl> config.networking.hostName
"mandark"

View File

@@ -285,7 +285,7 @@ A complete list of options for the PostgreSQL module may be found [here](#opt-se
The collection of plugins for each PostgreSQL version can be accessed with `.pkgs`. For example, for the `pkgs.postgresql_15` package, its plugin collection is accessed by `pkgs.postgresql_15.pkgs`:
```ShellSession
$ nix repl '<nixpkgs>'
$ nix repl -f '<nixpkgs>'
Loading '<nixpkgs>'...
Added 10574 variables.