environment.profileRelativeEnvVars

NixOS option

Attribute set of environment variable. Each attribute maps to a list of relative paths. Each relative path is appended to the each profile of environment.profiles to form the content of the corresponding environment variable.

type: attribute set of list of string
Default
{ }
Example
{
  MANPATH = [
    "/man"
    "/share/man"
  ];
  PATH = [
    "/bin"
  ];
}
declared in: nixos/modules/config/shells-environment.nixView source on NixOS/nixpkgs →