From a72a4e5beeaa0384762e08023a0d66597c51b676 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 31 Jul 2023 13:26:23 +0200 Subject: [PATCH] put key information into builder info to avoid long filenames --- src/nixos-anywhere.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nixos-anywhere.sh b/src/nixos-anywhere.sh index f500b40..df034f3 100755 --- a/src/nixos-anywhere.sh +++ b/src/nixos-anywhere.sh @@ -394,7 +394,7 @@ if [[ -z ${disko_script-} ]] && [[ ${build_on_remote-n} == "y" ]]; then step Building disko script disko_script=$( nix_build "${flake}#nixosConfigurations.\"${flakeAttr}\".config.system.build.diskoScript" \ - --builders "ssh://$ssh_connection?base64-ssh-public-host-key=$pubkey&ssh-key=$ssh_key_dir/nixos-anywhere $is_arch-linux" + --builders "ssh://$ssh_connection $is_arch-linux $ssh_key_dir/nixos-anywhere - - - - $pubkey " ) fi step Formatting hard drive with disko @@ -412,7 +412,7 @@ if [[ -z ${nixos_system-} ]] && [[ ${build_on_remote-n} == "y" ]]; then step Building the system closure nixos_system=$( nix_build "${flake}#nixosConfigurations.\"${flakeAttr}\".config.system.build.toplevel" \ - --builders "ssh://$ssh_connection?remote-store=local?root=/mnt&base64-ssh-public-host-key=$pubkey&ssh-key=$ssh_key_dir/nixos-anywhere $is_arch-linux" + --builders "ssh://$ssh_connection?remote-store=local?root=/mnt $is_arch-linux $ssh_key_dir/nixos-anywhere - - - - $pubkey " ) fi step Uploading the system closure