From e4d8620d8187e5eef5f0892c18b62cc95d312b0c Mon Sep 17 00:00:00 2001 From: chn Date: Tue, 11 Nov 2025 15:22:20 +0800 Subject: [PATCH] devices.cross.ssh: fix --- devices/cross/ssh.nix | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/devices/cross/ssh.nix b/devices/cross/ssh.nix index f394d7fa..64149ca4 100644 --- a/devices/cross/ssh.nix +++ b/devices/cross/ssh.nix @@ -62,13 +62,7 @@ in value = { publicKey = "ssh-ed25519 ${device.value.publicKey}"; - hostNames = - # 直接访问 - [ "${device.name}.chn.moe" ] - # 通过 tinc 访问 - ++ (builtins.map (net: "tinc0.${device.name}.chn.moe") - (builtins.attrNames inputs.topInputs.self.config.dns.tinc)) - # 额外的域名 + hostNames = [ "${device.name}.chn.moe" "tinc0.${device.name}.chn.moe" "${device.name}.ts.chn.moe" ] ++ (builtins.map (domain: "${domain}.chn.moe") device.value.extraAccess or []); }; }]