fix SSH user

This commit is contained in:
Sean Buckley 2021-12-21 10:06:06 -05:00
parent e73172eeaf
commit 7d7b770ab5

View file

@ -25,7 +25,6 @@ let
hostSshConfigs = concatMapStrings hostSshConfigs = concatMapStrings
(hostName: '' (hostName: ''
Host ${hostName} Host ${hostName}
User root
HostName ${nixosConfigurations.${hostName}.config.sconfig.morph.deployment.targetHost} HostName ${nixosConfigurations.${hostName}.config.sconfig.morph.deployment.targetHost}
'') '')
(builtins.attrNames nixosConfigurations); (builtins.attrNames nixosConfigurations);
@ -34,6 +33,8 @@ let
StrictHostKeyChecking yes StrictHostKeyChecking yes
GlobalKnownHostsFile ${sshKnownHostsTxt} GlobalKnownHostsFile ${sshKnownHostsTxt}
${hostSshConfigs} ${hostSshConfigs}
Host *
User root
''; '';
jump = pkgs.writeShellScript "jump" '' jump = pkgs.writeShellScript "jump" ''