Merge pull request #54273 from flokli/ssh-known-hosts-example

programs.ssh.knownHosts: update example to be an attrset
This commit is contained in:
Florian Klink 2019-01-21 17:15:27 +01:00 committed by GitHub
commit 0b4db9fa22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -167,16 +167,16 @@ in
The set of system-wide known SSH hosts.
'';
example = literalExample ''
[
{
{
myhost = {
hostNames = [ "myhost" "myhost.mydomain.com" "10.10.1.4" ];
publicKeyFile = ./pubkeys/myhost_ssh_host_dsa_key.pub;
}
{
};
myhost2 = {
hostNames = [ "myhost2" ];
publicKeyFile = ./pubkeys/myhost2_ssh_host_dsa_key.pub;
}
]
};
}
'';
};