1
0
Fork 0
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:
Robert Helgesson 2017-05-15 23:50:16 +02:00
parent 8c7811a213
commit 02288320d0
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -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}