Added source
This commit is contained in:
@@ -240,7 +240,7 @@ SSHEND
|
|||||||
### Get hardware information <--
|
### Get hardware information <--
|
||||||
|
|
||||||
scp -i "final-nix-config/home/numbus-admin/.ssh/id_ed25519" "${TARGET_USER}@${TARGET_HOST}":"${TMPFILE}" "${TMPFILE}" &> /dev/null
|
scp -i "final-nix-config/home/numbus-admin/.ssh/id_ed25519" "${TARGET_USER}@${TARGET_HOST}":"${TMPFILE}" "${TMPFILE}" &> /dev/null
|
||||||
source "${TMPFILE}" && rm "${TMPFILE}"
|
source "${TMPFILE}"
|
||||||
|
|
||||||
### --> Generate hardware-configuration.nix
|
### --> Generate hardware-configuration.nix
|
||||||
if ssh_to_host "sudo nixos-generate-config --no-filesystems --show-hardware-config" > final-nix-config/etc/nixos/hardware-configuration.nix; then
|
if ssh_to_host "sudo nixos-generate-config --no-filesystems --show-hardware-config" > final-nix-config/etc/nixos/hardware-configuration.nix; then
|
||||||
@@ -396,6 +396,8 @@ disk_config_generation() {
|
|||||||
|
|
||||||
|
|
||||||
### --> Disk selection
|
### --> Disk selection
|
||||||
|
source "${TMPFILE}"
|
||||||
|
|
||||||
if [[ "${#DISK_NAME[@]}" -eq 0 ]]; then
|
if [[ "${#DISK_NAME[@]}" -eq 0 ]]; then
|
||||||
echo -e "\n❌ No disks found on the target host. Aborting."
|
echo -e "\n❌ No disks found on the target host. Aborting."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user