mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +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!";
|
BAR = "$FOO World!";
|
||||||
};
|
};
|
||||||
</code></pre><p>may not work as expected. If you need to reference another
|
</code></pre><p>may not work as expected. If you need to reference another
|
||||||
session variable, then do so inside Nix instead. The above
|
session variable (even if it is declared by using other options
|
||||||
example then becomes</p><pre><code class="programlisting nix">home.sessionVariables = {
|
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";
|
FOO = "Hello";
|
||||||
BAR = "${config.home.sessionVariables.FOO} World!";
|
BAR = "${config.home.sessionVariables.FOO} World!";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue