From 2d257c09a1bdcaadf1574e0c6f2f284ee457602d Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Thu, 19 Jun 2025 10:25:52 +0700 Subject: [PATCH] programs.ssh.knownHosts: update example to be an attrset Backport https://github.com/NixOS/nixpkgs/commit/4f11c06fac92bc19b764a9248df416f20ff5ad03 Co-authored-by: Florian Klink --- modules/programs/ssh.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/programs/ssh.nix b/modules/programs/ssh.nix index 1e87732..93c79fd 100644 --- a/modules/programs/ssh.nix +++ b/modules/programs/ssh.nix @@ -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; - } - ] + }; + } ''; }; };