mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
gen-ssh-config: generate string instead of file
This commit is contained in:
parent
58382a6458
commit
def5192cf8
1 changed files with 7 additions and 9 deletions
|
@ -14,7 +14,6 @@ let
|
||||||
attrsToLines = a: lib.concatLines (attrsToList a);
|
attrsToLines = a: lib.concatLines (attrsToList a);
|
||||||
|
|
||||||
in
|
in
|
||||||
builtins.toFile "ssh-config" (
|
|
||||||
lib.concatMapStrings
|
lib.concatMapStrings
|
||||||
(host: ''
|
(host: ''
|
||||||
Host ${host}
|
Host ${host}
|
||||||
|
@ -22,4 +21,3 @@ builtins.toFile "ssh-config" (
|
||||||
${attrsToLines nixosConfigurations.${host}.config.deploy.ssh}
|
${attrsToLines nixosConfigurations.${host}.config.deploy.ssh}
|
||||||
'')
|
'')
|
||||||
(builtins.attrNames nixosConfigurations)
|
(builtins.attrNames nixosConfigurations)
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in a new issue