1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
This commit is contained in:
Samuel Tam 2025-11-06 21:09:14 +00:00 committed by GitHub
commit 0daf9c4974
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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