Skip to content

Add T3 Code server on sunflower - #18

Merged
tnmt merged 1 commit into
mainfrom
t3code-sunflower
Nov 24, 2026
Merged

tnmt merged 1 commit into
mainfrom
t3code-sunflower

Conversation

@tnmt

@tnmt tnmt commented Nov 24, 2026

Copy link
Copy Markdown
Owner

概要

sunflower で T3 Code (nixpkgs の t3code 0.1.8) をシステムサービスとして動かす。flake.lock は変更しない。

  • modules/nixos/services/t3code.nix を追加し、mynix.services.t3code.{enable,host,port} を提供する。
  • sunflower では host = 100.67.213.214 (NetBird アドレス) に bind する。loopback と LAN アドレスは接続拒否になることを確認済み。
  • ccpocket-bridge と同じ system service + User=tnmt 方式。keychain 経由の ssh ラッパーも同様に付ける。
  • nixpkgs 同梱の codex は外し、Home Manager の codex を使う。
  • 起動時に pairing token 入りの URL が stdout に出るため、StandardOutput=null で journald に残さない。

未実施 (マージ後の手順)

  • nix run .#switch -- -H sunflower と t3code.service の起動
  • t3 pair による pairing と Mac / Android からの接続確認
  • Windows Firewall (Hyper-V firewall) で TCP 3773 の inbound を NetBird 側のみ許可

ロールバックは nixos-rebuild switch --rollback か、この PR の revert。

🤖 Generated with Claude Code

Run the nixpkgs t3code (0.1.8, no flake.lock change) as a system service
under the login user, bound to the NetBird address only. Codex is taken
from the Home Manager profile instead of the bundled store copy, and
stdout is dropped so the pairing token printed at startup stays out of
journald.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tnmt
tnmt marked this pull request as ready for review November 24, 2026 13:07
@tnmt
tnmt enabled auto-merge (squash) November 24, 2026 13:07
@tnmt
tnmt merged commit 58175cb into main Nov 24, 2026
7 checks passed
@tnmt
tnmt deleted the t3code-sunflower branch November 24, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant