mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
deploy: 2f607e07f3
This commit is contained in:
parent
761a6974dc
commit
ca6ac06770
1 changed files with 3 additions and 2 deletions
|
@ -8492,8 +8492,9 @@ variable. In particular code like</p><pre><code class="programlisting nix">home.
|
|||
BAR = "$FOO World!";
|
||||
};
|
||||
</code></pre><p>may not work as expected. If you need to reference another
|
||||
session variable, then do so inside Nix instead. The above
|
||||
example then becomes</p><pre><code class="programlisting nix">home.sessionVariables = {
|
||||
session variable (even if it is declared by using other options
|
||||
like <a class="xref" href="options.xhtml#opt-xdg.configHome" ><code class="option">xdg.configHome</code></a>), then do so inside Nix instead.
|
||||
The above example then becomes</p><pre><code class="programlisting nix">home.sessionVariables = {
|
||||
FOO = "Hello";
|
||||
BAR = "${config.home.sessionVariables.FOO} World!";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue