home-manager: update style

Co-authored-by: Bruno BELANYI <bruno@belanyi.fr>
This commit is contained in:
Samuel Tam 2024-07-04 22:57:16 +08:00 committed by GitHub
parent d77315a418
commit d8d2a56f96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,7 +102,7 @@ function setHomeManagerNixPath() {
if [[ -n "$path" ]] ; then
if [[ -e "$path/flake.nix" ]] ; then
# Set FLAKE_ARG if not set by --flake already
FLAKE_ARG=${FLAKE_ARG:-$path}
: "${FLAKE_ARG:=$path}"
fi
if [[ -e "$path" || "$path" =~ ^https?:// ]] ; then
EXTRA_NIX_PATH+=("home-manager=$path")