environment.variables

NixOS option

A set of environment variables used in the global environment. These variables will be set on shell initialisation (e.g. in /etc/profile). The value of each variable can be either a string or a list of strings. The latter is concatenated, interspersed with colon characters. Setting a variable to null does nothing. You can override a variable set by another module to null to unset it.

type: attribute set of (null or (list of (signed integer or string or absolute path)) or signed integer or string or absolute path)
Default
{ }
Example
{
  EDITOR = "nvim";
  VISUAL = "nvim";
}
declared in: nixos/modules/config/shells-environment.nixView source on NixOS/nixpkgs →