1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-26 16:38:34 +02:00
home-manager/tests/modules/home-environment/session-path.nix
2023-11-21 18:50:29 +00:00

16 lines
374 B
Nix

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