mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
deploy: make ssh known hosts work better
This commit is contained in:
parent
b5a5dede52
commit
1fdd7edc53
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue