Environment variables: Difference between revisions
imported>Yuu Created page with "= Defining environment variables = Environment variables can be set with <code/>environment.variables</code>, <code>environment.sessionVariables</code>, and <code>environment...." |
imported>Yuu No edit summary |
||
Line 1: | Line 1: | ||
= Defining environment variables = | = Defining environment variables = | ||
Environment | |||
Environment variable can be set with <code>environment.variables</code>, <code>environment.sessionVariables</code>, and <code>environment.profileRelativeSessionVariables</code>. For example, for the [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#variablesXDG Base Directory Specification], the following could be set to <code>/etc/nixos/configuration.nix</code>: | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
Line 19: | Line 20: | ||
# ... | # ... | ||
} | } | ||
<syntaxhighlight | </syntaxhighlight> |