diff --git a/nixos/services/default.nix b/nixos/services/default.nix index a863865287..bd3ecd4803 100644 --- a/nixos/services/default.nix +++ b/nixos/services/default.nix @@ -47,9 +47,19 @@ PermitRootLogin = "no"; PasswordAuthentication = false; # Agent fleets connect in bursts over slow relays (Tailscale DERP); - # stock MaxStartups drops those handshakes. Raised 2026-10-25. - MaxStartups = "100:30:250"; + # stock MaxStartups drops those handshakes. Raised 2026-10-25, + # raised again 2026-10-28 (Drew) after nix#1020: bursts through + # the tailnet still tripped the 100 cap during fleet-wide runs. + MaxStartups = "200:30:500"; MaxSessions = 50; + # Unauthenticated slots recycle in half the stock time, so a + # burst drains faster instead of piling up against MaxStartups. + LoginGraceTime = 60; + # Probe idle clients every 30s and drop ones that never answer: + # dead DERP/tailnet connections stop holding sessions open, + # live-but-quiet sessions survive 10 missed probes (~5 min). + ClientAliveInterval = 30; + ClientAliveCountMax = 10; }; hostKeys = [ # {