3
0
Fork 0
forked from mirrors/nixpkgs

programs.ssh.knownHosts: update example to be an attrset

We shouldn't encourage using a list here, but prefer the attrset.
Using a list here causes very unintuitive effects during merging.
This commit is contained in:
Florian Klink 2019-01-18 15:31:19 +01:00
parent 222751b029
commit 4f11c06fac

View file

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