Home Explore Blog Models CI



nix

1st chunk of `doc/manual/source/command-ref/nix-env/env-common.md`
9c676f49cb7962cd3c557c6798f09ad5cd0701603ef655b900000001000000c1
# Environment variables

- `NIX_PROFILE`

  Location of the Nix profile. Defaults to the target of the symlink
  `~/.nix-profile`, if it exists, or `/nix/var/nix/profiles/default`
  otherwise.

Title: NIX_PROFILE Environment Variable
Summary
This chunk describes the `NIX_PROFILE` environment variable, which specifies the location of the Nix profile. Its default value is determined by checking for the existence of `~/.nix-profile` (symlink target) and falling back to `/nix/var/nix/profiles/default` if it does not exist.