Bootstrap: Fix script path.
This commit is contained in:
parent
23bcb97b11
commit
43283722d1
|
@ -2,12 +2,13 @@
|
||||||
|
|
||||||
# Install nixos to specified drive. To be run from Live ISO.
|
# Install nixos to specified drive. To be run from Live ISO.
|
||||||
# Usage: ./Bootstrap.sh <DRIVE> [HOST]
|
# Usage: ./Bootstrap.sh <DRIVE> [HOST]
|
||||||
|
cfg="$(realpath .)"
|
||||||
target="${1}"
|
target="${1}"
|
||||||
host="${2}"
|
host="${2}"
|
||||||
|
|
||||||
if [[ "${target}" = "" ]]; then
|
if [[ "${target}" = "" ]]; then
|
||||||
printf "Usage: ./Bootstrap.sh <DRIVE> [HOST]\n"
|
printf "Usage: ./.Bootstrap.sh <DRIVE> [HOST]\n"
|
||||||
return 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create partitions.
|
# Create partitions.
|
||||||
|
@ -37,5 +38,5 @@ if [[ "${host}" = "" ]]; then
|
||||||
nixos-install
|
nixos-install
|
||||||
else
|
else
|
||||||
printf "Installing ${host}...\n"
|
printf "Installing ${host}...\n"
|
||||||
nixos-install --no-root-password --no-channel-copy --flake "${_nix_system_config}#${host}"
|
nixos-install --no-root-password --no-channel-copy --flake "${cfg}#${host}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue