Added source

This commit is contained in:
Raphaël Numbus
2026-01-02 22:13:54 +01:00
parent ba19448f53
commit 5917875ebe
+3 -1
View File
@@ -240,7 +240,7 @@ SSHEND
### Get hardware information <--
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
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
source "${TMPFILE}"
if [[ "${#DISK_NAME[@]}" -eq 0 ]]; then
echo -e "\n❌ No disks found on the target host. Aborting."
exit 1