Commit 03b68f14 authored by Antoine Toinux's avatar Antoine Toinux
Browse files

nixos-rebuild: Fetch Flake's default configurationName (Hostname) from targetHost

parent 850239d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -390,7 +390,7 @@ if [[ -n $flake ]]; then
       flakeAttr="${BASH_REMATCH[2]}"
    fi
    if [[ -z $flakeAttr ]]; then
        read -r hostname < /proc/sys/kernel/hostname
        hostname="$(targetHostCmd cat /proc/sys/kernel/hostname)"
        if [[ -z $hostname ]]; then
            hostname=default
        fi