diff options
author | Florian Klink <flokli@flokli.de> | 2019-01-21 17:15:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-21 17:15:27 +0100 |
commit | 0b4db9fa220197570bebc95274434b6e4ebe45fd (patch) | |
tree | 8544b92a9fbfc64708117486a677863c532df8a4 | |
parent | e6af8309613318187f67b36a8ac4f75d338e23ee (diff) | |
parent | 4f11c06fac92bc19b764a9248df416f20ff5ad03 (diff) | |
download | nixlib-0b4db9fa220197570bebc95274434b6e4ebe45fd.tar nixlib-0b4db9fa220197570bebc95274434b6e4ebe45fd.tar.gz nixlib-0b4db9fa220197570bebc95274434b6e4ebe45fd.tar.bz2 nixlib-0b4db9fa220197570bebc95274434b6e4ebe45fd.tar.lz nixlib-0b4db9fa220197570bebc95274434b6e4ebe45fd.tar.xz nixlib-0b4db9fa220197570bebc95274434b6e4ebe45fd.tar.zst nixlib-0b4db9fa220197570bebc95274434b6e4ebe45fd.zip |
Merge pull request #54273 from flokli/ssh-known-hosts-example
programs.ssh.knownHosts: update example to be an attrset
-rw-r--r-- | nixos/modules/programs/ssh.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/nixos/modules/programs/ssh.nix b/nixos/modules/programs/ssh.nix index cc398174e6ce..4640c1d78d20 100644 --- a/nixos/modules/programs/ssh.nix +++ b/nixos/modules/programs/ssh.nix @@ -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; - } - ] + }; + } ''; }; |