mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
591 B
591 B
| synopsis | prs | |
|---|---|---|
| Use envvars NIX_CACHE_HOME, NIX_CONFIG_HOME, NIX_DATA_HOME, NIX_STATE_HOME if defined |
|
Added new environment variables:
NIX_CACHE_HOMENIX_CONFIG_HOMENIX_DATA_HOMENIX_STATE_HOME
Each, if defined, takes precedence over the corresponding XDG environment variable. This provides more fine-grained control over where Nix looks for files, and allows to have a stand-alone Nix environment, which only uses files in a specific directory, and doesn't interfere with the user environment.