From d7aa534a1a627da667ea444aafee2b5ae5aa7b51 Mon Sep 17 00:00:00 2001 From: gapul <92638132+gapul@users.noreply.github.com> Date: Tue, 1 Sep 2026 22:44:22 +0900 Subject: [PATCH] =?UTF-8?q?fix(darwin):=20builders=20=E3=81=AF=E3=83=9B?= =?UTF-8?q?=E3=82=B9=E3=83=88=E5=90=8D=E3=81=A7=E3=81=AA=E3=81=8F=20tailne?= =?UTF-8?q?t=20=E3=81=AE=20IP=20=E3=81=A7=E6=9B=B8=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nix のデーモンは root として動くので ~/.ssh/config を読まず、"macmini" を 解決できない (Could not resolve hostname macmini)。 root の ~/.ssh/known_hosts にホスト鍵も要る。無いと Host key verification failed で 止まる。これは一度きりの手作業なので、その手順をコメントに残した。 疎通確認済み: Store URL: ssh-ng://gapul@100.105.135.49?ssh-key=... Version: 2.34.8 Trusted: 1 --- nix/flake.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nix/flake.nix b/nix/flake.nix index 94b579e1..ffe84c9d 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -684,7 +684,14 @@ # builders-use-substitutes を付けないと、macmini が要る依存を母艦から # 転送することになり、キャッシュから直接引ける利点が消える。 nixCustomConf = { - builders = "ssh-ng://gapul@macmini aarch64-darwin /Users/gapul/.ssh/id_automation 10 1 big-parallel,benchmark"; + # ホスト名ではなく tailnet の IP で書く。nix のデーモンは root として + # 動くので ~/.ssh/config を読まず、"macmini" を解決できない + # (Could not resolve hostname macmini)。 + # + # root の ~/.ssh/known_hosts に macmini のホスト鍵が要る。無いと + # 「Host key verification failed」で止まる。これは一度きりの手作業: + # sudo sh -c 'ssh-keyscan -H 100.105.135.49 >> /var/root/.ssh/known_hosts' + builders = "ssh-ng://gapul@100.105.135.49 aarch64-darwin /Users/gapul/.ssh/id_automation 10 1 big-parallel,benchmark"; builders-use-substitutes = "true"; }; # hosts/darwin.nix declares the .app-shipping creative tools, which come from