mirror of
https://github.com/nix-community/home-manager
synced 2025-01-07 09:39:49 +01:00
home-manager: prioritize -I
parameters
In176e455
the order between the action of `-I` parameters getting added to `EXTRA_NIX_PATH` and the action of a static path getting added to `EXTRA_NIX_PATH` was reversed, also reversing the order of `-I` parameters and the static `-I home-manager=...` leading to the static `-I home-manager=...` to always come before any of the `-I` parameters to later calls to Nix commands. This made it impossible to override the static Home Manager path when calling the home-manager tool with `-I home-manager=...`. This was previously possible. (cherry picked from commitedf9cf6523
)
This commit is contained in:
parent
61e5d1c38e
commit
a8d549351d
1 changed files with 2 additions and 1 deletions
|
@ -883,7 +883,6 @@ COMMAND=""
|
|||
COMMAND_ARGS=()
|
||||
FLAKE_ARG=""
|
||||
|
||||
setHomeManagerNixPath
|
||||
setHomeManagerPathVariables
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
|
@ -979,6 +978,8 @@ while [[ $# -gt 0 ]]; do
|
|||
esac
|
||||
done
|
||||
|
||||
setHomeManagerNixPath
|
||||
|
||||
if [[ -z $COMMAND ]]; then
|
||||
doHelp >&2
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue