feat: open port 4096 for opencode

This commit is contained in:
Jet 2026-03-24 15:11:37 -07:00
parent 08ed409342
commit 33bc6c1bad
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -29,6 +29,7 @@
networking.firewall.enable = true; networking.firewall.enable = true;
# Required for Tailscale # Required for Tailscale
networking.firewall.checkReversePath = "loose"; networking.firewall.checkReversePath = "loose";
networking.firewall.interfaces."tailscale0".allowedTCPPorts = [ 4096 ];
services.tailscale.enable = true; services.tailscale.enable = true;

View file

@ -254,6 +254,8 @@ in
"nfu" = "nix flake update"; "nfu" = "nix flake update";
"c" = "claude"; "c" = "claude";
"o" = "opencode"; "o" = "opencode";
"ow" =
"URL=\"https://$(tailscale status --json | jq -r '.Self.DNSName | sub(\"\\.$\"; \"\")')\"; printf 'Open on phone: %s\\n' \"$URL\"; tailscale serve --bg 443 http://127.0.0.1:4096; opencode web --hostname 127.0.0.1 --port 4096";
".." = "z .."; ".." = "z ..";
j = "jj"; j = "jj";
jgf = "jj git fetch"; jgf = "jj git fetch";