It would be helpful to
- formally describe the formats for NIXPATH, and
- note the allowed angle bracket syntax accordingly
<path>
will work with the prefixless format, but not with the prefixed one, and it may be helpful to spell this out explicitly.
0 [14:16:19] nix repl
Welcome to Nix version 2.3.10. Type :? for help.
nix-repl> :l <nixpkgs/doc>
Added 40 variables.
nix-repl> :l <doc>
error: file 'doc' was not found in the Nix search path (add it using $NIX_PATH or -I)
I always saw a NIXPATH used with the prefix syntax so far:
$ echo $NIX_PATH
nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root
but NIX_PATH
documentation shows that the prefixless format is also valid.
$ export NIX_PATH=/home/toraritte:/nix/var/nix/profiles/per-user/root/channels/nixos
$ printenv NIX_PATH
/home/toraritte:/nix/var/nix/profiles/per-user/root/channels/nixos
$ nix repl
Welcome to Nix version 2.3.10. Type :? for help.
nix-repl> :l <nixpkgs>
Added 12439 variables.