mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +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
|
lib.concatMapStrings
|
||||||
(host: ''
|
(host: ''
|
||||||
Host ${host}
|
Host ${host}
|
||||||
|
UserKnownHostsFile ${sshKnownHostsTxt}
|
||||||
${attrsToLines nixosConfigurations.${host}.config.deploy.ssh}
|
${attrsToLines nixosConfigurations.${host}.config.deploy.ssh}
|
||||||
'')
|
'')
|
||||||
(builtins.attrNames nixosConfigurations) +
|
(builtins.attrNames nixosConfigurations)
|
||||||
''
|
|
||||||
GlobalKnownHostsFile ${sshKnownHostsTxt}
|
|
||||||
''
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue