mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-30 22:21:02 +01:00
28 lines
479 B
Nix
28 lines
479 B
Nix
{ ... }:
|
|
|
|
{
|
|
imports = [
|
|
(
|
|
{ ... }:
|
|
{
|
|
config.home.sessionSearchVariables.TEST = [ "foo" ];
|
|
}
|
|
)
|
|
(
|
|
{ ... }:
|
|
{
|
|
config.home.sessionSearchVariables.TEST = [
|
|
"bar"
|
|
"baz"
|
|
];
|
|
}
|
|
)
|
|
];
|
|
|
|
nmt.script = ''
|
|
hmSessVars=home-path/etc/profile.d/hm-session-vars.sh
|
|
assertFileExists $hmSessVars
|
|
assertFileContains $hmSessVars \
|
|
'export TEST="bar:baz:foo''${TEST:+:}$TEST"'
|
|
'';
|
|
}
|