1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

home-manager: prioritize -I parameters

In 176e455 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.
This commit is contained in:
Rosario Pulella 2023-06-16 19:18:26 -04:00 committed by Robert Helgesson
parent f7c4dae2c8
commit edf9cf6523
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

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