From 4680cb2e59213be2fa8a0e7854a330e35bb77fd6 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Wed, 4 Jun 2025 15:40:52 +0530 Subject: [PATCH] feat: Use macmini as subnet router --- darwin/shiro/services/tailscale.nix | 8 ++++++-- nixos/ryu/services/tailscale.nix | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/darwin/shiro/services/tailscale.nix b/darwin/shiro/services/tailscale.nix index 44ce5785..175d3b09 100644 --- a/darwin/shiro/services/tailscale.nix +++ b/darwin/shiro/services/tailscale.nix @@ -1,5 +1,9 @@ {...}: { - services.tailscale = { - enable = true; + services = { + tailscale = { + enable = true; + useRoutingFeatures = "both"; + extraUpFlags = ["--advertise-routes=192.168.0.0/24"]; + }; }; } diff --git a/nixos/ryu/services/tailscale.nix b/nixos/ryu/services/tailscale.nix index 800a81c9..3ce346d7 100644 --- a/nixos/ryu/services/tailscale.nix +++ b/nixos/ryu/services/tailscale.nix @@ -6,17 +6,17 @@ services = { tailscale = { enable = true; - useRoutingFeatures = "both"; - extraUpFlags = ["--advertise-routes=192.168.0.0/24"]; - }; - networkd-dispatcher = { - enable = true; - rules."50-tailscale" = { - onState = ["routable"]; - script = '' - ${lib.getExe pkgs.ethtool} -K en01 rx-udp-gro-forwarding on rg-xgro-list off - ''; - }; + # useRoutingFeatures = "both"; + # extraUpFlags = ["--advertise-routes=192.168.0.0/24"]; }; + # networkd-dispatcher = { + # enable = true; + # rules."50-tailscale" = { + # onState = ["routable"]; + # script = '' + # ${lib.getExe pkgs.ethtool} -K en01 rx-udp-gro-forwarding on rg-xgro-list off + # ''; + # }; + # }; }; }