Most commands in Lix interpret the following environment variables:

Lix follows the XDG Base Directory Specification.

For backwards compatibility, commands in Lix will follow the standard only when use-xdg-base-directories is enabled. New Nix commands (experimental) conform to the standard by default.

The following environment variables are used to determine locations of various state and configuration files: