deploy: make ssh known hosts work better

This commit is contained in:
Sean Buckley 2023-09-01 18:57:58 -04:00
parent b5a5dede52
commit 1fdd7edc53

View file

@ -18,10 +18,8 @@ builtins.toFile "ssh-config" (
lib.concatMapStrings
(host: ''
Host ${host}
UserKnownHostsFile ${sshKnownHostsTxt}
${attrsToLines nixosConfigurations.${host}.config.deploy.ssh}
'')
(builtins.attrNames nixosConfigurations) +
''
GlobalKnownHostsFile ${sshKnownHostsTxt}
''
(builtins.attrNames nixosConfigurations)
)