mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 08:09:45 +01:00
16 lines
406 B
Nix
16 lines
406 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
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="$TEST''${TEST:+:}bar:baz:foo"'
|
||
|
'';
|
||
|
}
|