Adds a t3code systemd service on m3-kratos that runs t3 serve --host 100.81.73.194 as m3tam3re, so T3 Code binds to the NetBird address instead of depending on the desktop app.
Keeps HOME=/home/m3tam3re, so the existing ~/.t3 state and threads are reused.
Sets the port from m3ta.ports.get "t3code" and opens it only on the wt0 (NetBird) interface.
Removes the T3CODE_DESKTOP_LAN_HOST session variable from #30. The desktop app ignores --host, so the mesh-name override is no longer needed.
The NetBird IP is hardcoded. If NetBird reassigns it, the service stops starting until the value is updated.
Deploying this requires turning off the desktop app's local environment first. Otherwise the app holds the ~/.t3 lock and the service keeps retrying.
alejandra and statix were run on hosts/m3-kratos/services/t3code.nix. Re-run them before merge to confirm a clean result.
Not run: nixos-rebuild switch on m3-kratos.
Not run: confirm the service is active and port 3773 listens on 100.81.73.194 (ss -ltn).
Not run: t3 pair and pairing the desktop app and a second mesh device against the new URL.
## Summary
- Adds a `t3code` systemd service on m3-kratos that runs `t3 serve --host 100.81.73.194` as `m3tam3re`, so T3 Code binds to the NetBird address instead of depending on the desktop app.
- Keeps `HOME=/home/m3tam3re`, so the existing `~/.t3` state and threads are reused.
- Sets the port from `m3ta.ports.get "t3code"` and opens it only on the `wt0` (NetBird) interface.
- Removes the `T3CODE_DESKTOP_LAN_HOST` session variable from #30. The desktop app ignores `--host`, so the mesh-name override is no longer needed.
- The NetBird IP is hardcoded. If NetBird reassigns it, the service stops starting until the value is updated.
- Deploying this requires turning off the desktop app's local environment first. Otherwise the app holds the `~/.t3` lock and the service keeps retrying.
## Testing
- `nix build .#nixosConfigurations.m3-kratos.config.system.build.toplevel` completes.
- `alejandra` and `statix` were run on `hosts/m3-kratos/services/t3code.nix`. Re-run them before merge to confirm a clean result.
- Not run: `nixos-rebuild switch` on m3-kratos.
- Not run: confirm the service is active and port 3773 listens on 100.81.73.194 (`ss -ltn`).
- Not run: `t3 pair` and pairing the desktop app and a second mesh device against the new URL.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
t3codesystemd service on m3-kratos that runst3 serve --host 100.81.73.194asm3tam3re, so T3 Code binds to the NetBird address instead of depending on the desktop app.HOME=/home/m3tam3re, so the existing~/.t3state and threads are reused.m3ta.ports.get "t3code"and opens it only on thewt0(NetBird) interface.T3CODE_DESKTOP_LAN_HOSTsession variable from #30. The desktop app ignores--host, so the mesh-name override is no longer needed.~/.t3lock and the service keeps retrying.Testing
nix build .#nixosConfigurations.m3-kratos.config.system.build.toplevelcompletes.alejandraandstatixwere run onhosts/m3-kratos/services/t3code.nix. Re-run them before merge to confirm a clean result.nixos-rebuild switchon m3-kratos.ss -ltn).t3 pairand pairing the desktop app and a second mesh device against the new URL.