morph: move SSH username setting

This commit is contained in:
Sean Buckley 2021-10-19 14:17:58 -04:00
parent c15d650ff0
commit fef2729880

View file

@ -60,6 +60,8 @@ in
);
sshConfig = pkgs.writeText "ssh_config" ''
Host *
User root
ServerAliveInterval 3
StrictHostKeyChecking yes
GlobalKnownHostsFile ${sshKnownHostsTxt}
@ -77,7 +79,6 @@ in
mkdir -p $out/bin
. ${pkgs.makeWrapper}/nix-support/setup-hook
makeWrapper ${pkgs.morph}/bin/morph $out/bin/morph \
--set SSH_USER root \
--set SSH_CONFIG_FILE ${sshConfig}
'';