diff --git a/lib/morph.nix b/lib/morph.nix index 6862bd6..812cd49 100644 --- a/lib/morph.nix +++ b/lib/morph.nix @@ -106,7 +106,7 @@ ''; ssh = sh '' - ip="$(nix eval --raw --file ./. "nixosConfigurations.\"$1\".config.sconfig.morph.deployment.targetHost")" + ip="$(nix eval --raw ".#nixosConfigurations.\"$1\".config.sconfig.morph.deployment.targetHost")" shift exec ssh -F"${sshConfig}" "$ip" "$@" '';