mirror of
https://github.com/nix-community/home-manager
synced 2025-02-17 05:35:06 +01:00
home-manager: set FLAKE_ARG with HOME_MANAGER_PATH
This commit is contained in:
parent
0a30138c69
commit
d77315a418
1 changed files with 4 additions and 0 deletions
|
@ -100,6 +100,10 @@ function setHomeManagerNixPath() {
|
|||
local path="@HOME_MANAGER_PATH@"
|
||||
|
||||
if [[ -n "$path" ]] ; then
|
||||
if [[ -e "$path/flake.nix" ]] ; then
|
||||
# Set FLAKE_ARG if not set by --flake already
|
||||
FLAKE_ARG=${FLAKE_ARG:-$path}
|
||||
fi
|
||||
if [[ -e "$path" || "$path" =~ ^https?:// ]] ; then
|
||||
EXTRA_NIX_PATH+=("home-manager=$path")
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue