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

Backport 4f11c06fac

Co-authored-by: Florian Klink <flokli@flokli.de>
This commit is contained in:
Michael Hoang 2025-06-19 10:25:52 +07:00
parent 04b04f4b9d
commit 2d257c09a1

View file

@ -130,16 +130,16 @@ in
The set of system-wide known SSH hosts.
'';
example = literalExpression ''
[
{
{
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;
}
]
};
}
'';
};
};