mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
Merge d8d2a56f96 into 0562fef070
This commit is contained in:
commit
0daf9c4974
1 changed files with 4 additions and 0 deletions
|
|
@ -107,6 +107,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:=$path}"
|
||||
fi
|
||||
if [[ -e "$path" || "$path" =~ ^https?:// ]] ; then
|
||||
EXTRA_NIX_PATH+=("home-manager=$path")
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue