1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-20 07:12:36 +00:00
home-manager/tests/modules/home-environment/session-path.nix

16 lines
355 B
Nix
Raw Normal View History

{ ... }:
2020-12-16 22:22:02 +09:00
{
imports = [
({ ... }: { config.home.sessionPath = [ "foo" ]; })
({ ... }: { config.home.sessionPath = [ "bar" "baz" ]; })
];
nmt.script = ''
2020-12-16 22:22:02 +09:00
hmSessVars=home-path/etc/profile.d/hm-session-vars.sh
assertFileExists $hmSessVars
assertFileContains $hmSessVars \
'export PATH="bar:baz:foo''${PATH:+:}$PATH"'
'';
}