fix: fix path to ssh folder to add in persistent

This commit is contained in:
Julien Malka 2024-04-07 14:35:02 +02:00
parent d174781133
commit 6a006bf2e7
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -30,10 +30,8 @@ pkgs.writeShellScriptBin "bootstrap-machine" ''
mkdir -p "$temp/persistent"
cp -r "$temp/ssh" "$temp/persistent/ssh"
cp -r "$temp/etc" "$temp/persistent/etc"
nixos-anywhere --extra-files "$temp" --store-paths $(nix-build -A nixosConfigurations.\"$machine\".config.system.build.diskoScript) $(nix-build -A nixosConfigurations.\"$machine\".config.system.build.toplevel) "''${extra_args[@]}" root@"$ip"
popd
''