Open onnimonni opened 2 days ago
Did it work with ssh-ng://?
Probably a stupid question but how would I use that? By using a copy of the script with my own mods?
You can even take the nix copy command that you see in the debug output
So this is what I tried:
$ nix copy --extra-experimental-features 'nix-command flakes' --no-write-lock-file -L --to ssh-ng://root@X.Y.Z.W '.#nixosConfigurations."myHost".config.system.build.diskoScript' --derivation --no-check-sigs --debug --print-build-logs 2> nix-copy-debug.log
I redacted my ip-address and changed /Users/$USER
to ~
in the log.
It doesn't do anything after the server accepts my public key and just waits. I pressed ctrl+c to stop the process after 15minutes.
I attached the logs here: nix-copy-debug.log
Here's also my nix version:
$ nix --version
nix (Nix) 2.24.5
log missing context of stdout -- looks like ssh issue
Issue
Even on the latest version of nixos-anywhere I can't get deployments working with
--build-on-remote
. I already tried to mention about this on #371 but it's probably cleaner to open new issue instead than continuing there.Example logs
You can see my flake and diskoscripts in this example repo: https://github.com/onnimonni/hetzner-auction-nixos-example.
I can get this working if I kexec the server and then deploy directly there as I documented on the example git repo but not directly from my MacOS.
MacOS version