diff --git a/lib/gen-ssh-config.nix b/lib/gen-ssh-config.nix index f017051..4934472 100644 --- a/lib/gen-ssh-config.nix +++ b/lib/gen-ssh-config.nix @@ -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) )