Fails with nix 1.12
Hey, heads up, nix-deploy doesn't seem to work with nix 1.12. I just installed nixUnstable and tried to run nix-deploy, and got this result:
[+] Downloading: /etc/nix/signing-key.sec
[+] Installing: /etc/nix/signing-key.sec
[+] Downloading: /etc/nix/signing-key.pub
[+] Installing: /etc/nix/signing-key.pub
[+] Installing system: /nix/store/nx3f93ll1dksdpypqik1rbrp013vclm2-nixos-system-tc-webserver1-18.03pre-git
error: invalid SSH host name '--sign'
nix-deploy: user error ([x] Failed transferring /nix/store/nx3f93ll1dksdpypqik1rbrp013vclm2-nixos-system-tc-webserver1-18.03pre-git to typeclasses.com
1. /nix/store/nx3f93ll1dksdpypqik1rbrp013vclm2-nixos-system-tc-webserver1-18.03pre-git may not exist, make sure you built it with nix-build first
2. Make sure you have an authorized key configured on typeclasses.com so that you can SSH
Original error was:
ProcFailed {procCommand = "nix-copy-closure", procArguments = ["--sign","--to","--gzip","typeclasses.com","/nix/store/nx3f93ll1dksdpypqik1rbrp013vclm2-nixos-system-tc-webserver1-18.03pre-git"], procExitCode = ExitFailure 1}
)
Seems like the command-line interface must be changing or something.
Thanks for the issue ticket. I also think in nix 1.12 nix-copy-closure will handle key exchange too so we'll probably need to remove that behavior from the tool.
That's probably a good time to bump the minor version. I'll get to this soon since I'm also on unstable (but not on 1.12 yet).
@ixmatus has anything happened in that regard? :)
@gilligan no, I was busy over the weekend with some other higher-priority personal projects. I will probably get to this later this week if not this weekend (I want to fix it for myself too).
A temp solution is to just add --noSign to your nix-deploy call.