mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +01:00
20 lines
380 B
Nix
20 lines
380 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
home.sessionVariables = {
|
||
|
V1 = "v1";
|
||
|
V2 = "v2-${config.home.sessionVariables.V1}";
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
|
||
|
assertFileContent \
|
||
|
home-path/etc/profile.d/hm-session-vars.sh \
|
||
|
${./session-variables-expected.txt}
|
||
|
'';
|
||
|
};
|
||
|
}
|