git.iko.soy/typeable/nixpkgs
on master help sign in
services.openssh.knownHosts.*.publicKey: Update description and add example

Note that it's no longer allowed to have multiple public keys separated by a newline.

commit7b38cb699db5d1e08ead7bd8de1bd50c095d3082 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateMon 13 Jul 2015, 16:18 (11 years ago) parenta4788bd
1 file changed+2−3
nixos/modules/services/networking/ssh/sshd.nix+2−3
nixos/modules/services/networking/ssh/sshd.nix+2−3
@@ -244,13 +244,12 @@ in
244244 publicKey = mkOption {
245245 default = null;
246246 type = types.nullOr types.str;
247+ example = "ecdsa-sha2-nistp521 AAAAE2VjZHN...UEPg==";
247248 description = ''
248249 The public key data for the host. You can fetch a public key
249250 from a running SSH server with the <command>ssh-keyscan</command>
250251 command. The public key should not include any host names, only
251− the key type and the key itself. It is allowed to add several
252− lines here, each line will be treated as type/key pair and the
253− host names will be prepended to each line.
252+ the key type and the key itself.
254253 '';
255254 };
256255 publicKeyFile = mkOption {