mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
bash: source session variable file directly
This commit is contained in:
parent
d398f95f1e
commit
142acd7a7d
2 changed files with 3 additions and 3 deletions
|
|
@ -265,7 +265,7 @@ in
|
||||||
);
|
);
|
||||||
|
|
||||||
home.file.".profile".source = writeBashScript "profile" ''
|
home.file.".profile".source = writeBashScript "profile" ''
|
||||||
. "${config.home.profileDirectory}/etc/profile.d/hm-session-vars.sh"
|
. "${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh"
|
||||||
|
|
||||||
${sessionVarsStr}
|
${sessionVarsStr}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,9 +14,9 @@
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
assertFileExists home-files/.profile
|
assertFileExists home-files/.profile
|
||||||
assertFileContent \
|
assertFileContent \
|
||||||
home-files/.profile \
|
"$(normalizeStorePaths home-files/.profile)" \
|
||||||
${builtins.toFile "session-variables-expected" ''
|
${builtins.toFile "session-variables-expected" ''
|
||||||
. "/home/hm-user/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
. "/nix/store/00000000000000000000000000000000-hm-session-vars.sh/etc/profile.d/hm-session-vars.sh"
|
||||||
|
|
||||||
export V1="v1"
|
export V1="v1"
|
||||||
export V2="v2-v1"
|
export V2="v2-v1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue