1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-29 09:58:32 +02:00
home-manager/tests/modules/home-environment/session-path.nix

16 lines
374 B
Nix
Raw Normal View History

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