mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 16:19:44 +01:00
home-environment: use explicit PATH in activation
In the activation script we expect to use the tools provided by GNU Core Utilities and GNU Bash. This commit therefore explicitly add these first in the `PATH` environment variable.
This commit is contained in:
parent
8c7811a213
commit
02288320d0
1 changed files with 5 additions and 0 deletions
|
@ -375,6 +375,11 @@ in
|
||||||
set -eu
|
set -eu
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
# This code explicitly requires GNU Core Utilities and Bash.
|
||||||
|
# We therefore need to ensure they are prioritized over any
|
||||||
|
# other similarly named tools on the system.
|
||||||
|
export PATH="${pkgs.coreutils}/bin:${pkgs.bash}/bin:$PATH"
|
||||||
|
|
||||||
. ${./lib-bash/color-echo.sh}
|
. ${./lib-bash/color-echo.sh}
|
||||||
|
|
||||||
${builtins.readFile ./lib-bash/activation-init.sh}
|
${builtins.readFile ./lib-bash/activation-init.sh}
|
||||||
|
|
Loading…
Reference in a new issue