mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
home-manager: switch NIX_PATH order
This new order allows overriding the home-manager path from the command line using `home-manager -I home-manager=/a/b/c`.
This commit is contained in:
parent
8b77f1db2c
commit
81fb420457
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ function setHomeManagerNixPath() {
|
||||||
"${XDG_CONFIG_HOME:-$HOME/.config}/nixpkgs/home-manager" \
|
"${XDG_CONFIG_HOME:-$HOME/.config}/nixpkgs/home-manager" \
|
||||||
"$HOME/.nixpkgs/home-manager" ; do
|
"$HOME/.nixpkgs/home-manager" ; do
|
||||||
if [[ -e "$path" || "$path" =~ ^https?:// ]] ; then
|
if [[ -e "$path" || "$path" =~ ^https?:// ]] ; then
|
||||||
export NIX_PATH="$NIX_PATH${NIX_PATH:+:}home-manager=$path"
|
export NIX_PATH="home-manager=$path${NIX_PATH:+:}$NIX_PATH"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue