fix(tailscale): drop a duplicate CLI install and a stale comment

Assisted-by: DeepSeek Harness 0.2.1-rc.2 (deepseek-flash)
This commit is contained in:
Ryan Yin authored and ryan4yin | 二花 committed 2026-10-22 00:54:27 +08:00
1 parent 267ccd9d34
commit d421a89bd9
2 files changed
+6 -8

No files matched your search

+3 -3
View File
@@ -1,5 +1,4 @@
{
pkgs,
myvars,
...
}:
@@ -7,13 +6,14 @@ let
inherit (myvars.networking) hostsAddr k8sVip;
in
{
environment.systemPackages = [ pkgs.tailscale ];
# `services.tailscale` already puts the CLI in `environment.systemPackages`.
services.tailscale = {
enable = true;
port = 41641;
interfaceName = "tailscale0";
# allow the Tailscale UDP port through the firewall
# No-op here: the shared firewall opens 41641 in `extraInputRules` and
# forces `allowedUDPPorts` empty.
openFirewall = true;
useRoutingFeatures = "server";
@@ -1,6 +1,4 @@
{
lib,
pkgs,
...
}:
# =============================================================
@@ -28,15 +26,15 @@
#
# =============================================================
{
# make the tailscale command usable to users
environment.systemPackages = [ pkgs.tailscale ];
# `services.tailscale` already puts the CLI in `environment.systemPackages`.
# enable the tailscale service
services.tailscale = {
enable = true;
port = 41641;
interfaceName = "tailscale0";
# allow the Tailscale UDP port through the firewall
# No-op here: the shared firewall opens 41641 in `extraInputRules` and
# forces `allowedUDPPorts` empty.
openFirewall = true;
useRoutingFeatures = "client";