add hosts' SSH keys to known_hosts
This commit is contained in:
parent
4e461f83a8
commit
d0dbf94fb8
|
@ -132,5 +132,10 @@ in
|
|||
++ optionals host.isRouter [ "10.127.0.0/16" "fd70:81ca:0f8f::/48" ];
|
||||
};
|
||||
};
|
||||
|
||||
services.openssh.knownHosts = builtins.map hosts (name: host: {
|
||||
publicKey = host.hostKey;
|
||||
hostNames = [ host.ipv4 host.ipv6 ];
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue