mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
rearrange ssh settings
This commit is contained in:
parent
2dc384bc82
commit
bdeff9d709
1 changed files with 11 additions and 9 deletions
|
@ -14,12 +14,14 @@ let
|
|||
attrsToLines = a: lib.concatLines (attrsToList a);
|
||||
|
||||
in
|
||||
builtins.toFile "ssh-config" (''
|
||||
GlobalKnownHostsFile ${sshKnownHostsTxt}
|
||||
'' +
|
||||
lib.concatMapStrings
|
||||
(host: ''
|
||||
Host ${host}
|
||||
${attrsToLines nixosConfigurations.${host}.config.deploy.ssh}
|
||||
'')
|
||||
(builtins.attrNames nixosConfigurations))
|
||||
builtins.toFile "ssh-config" (
|
||||
lib.concatMapStrings
|
||||
(host: ''
|
||||
Host ${host}
|
||||
${attrsToLines nixosConfigurations.${host}.config.deploy.ssh}
|
||||
'')
|
||||
(builtins.attrNames nixosConfigurations) +
|
||||
''
|
||||
GlobalKnownHostsFile ${sshKnownHostsTxt}
|
||||
''
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue