mirror of
https://github.com/nix-community/home-manager
synced 2025-01-08 10:09:49 +01:00
e5471d3145
This makes the options behave as people expect it to: one's personal configuration can shadow system executables. Closes #3324.
15 lines
374 B
Nix
15 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"'
|
|
'';
|
|
}
|