Home Explore Blog Models CI



nix

doc/manual/source/command-ref/nix-env/env-common.md
614318dc5a45689bcbc2ca377155a580fdb6d2cd5b54e85b00000003000000c1
# 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.

Chunks
9c676f49 (1st chunk of `doc/manual/source/command-ref/nix-env/env-common.md`)
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.