environment.sessionVariables

NixOS option

A set of environment variables used in the global environment. These variables will be set by PAM early in the login process. The value of each session 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. Note, due to limitations in the PAM format values may not contain the " character. Also, these variables are merged into environment.variables and it is therefore not possible to use PAM style variables such as @{HOME}.

type: attribute set of (null or (list of (signed integer or string or absolute path)) or signed integer or string or absolute path)
Default
{ }
declared in: nixos/modules/config/system-environment.nixView source on NixOS/nixpkgs →