[shared] Remove problematic ssh extraHostnames

This commit is contained in:
2025-10-18 14:24:57 +02:00
parent 8ea8cf381b
commit ca2c627815

View File

@@ -3,19 +3,10 @@
lib,
systemConfig,
systems,
common,
...
}:
{
programs.ssh.knownHosts = builtins.mapAttrs (hostName: system: {
extraHostNames = [
(
if (system ? address && system.address ? tailnet) then
system.address.tailnet
else
common.tailnetAddr hostName
)
];
publicKey = system.ssh.publicKey;
}) systems;
users.users.${systemConfig.username}.openssh.authorizedKeys.keys = (