diff --git a/shared/base/modules/security/ssh.nix b/shared/base/modules/security/ssh.nix index e01a820..3f204ee 100644 --- a/shared/base/modules/security/ssh.nix +++ b/shared/base/modules/security/ssh.nix @@ -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 = (