From 453e36a252ae5c4fbc34688bdcb1c6d25a99e8fc Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Wed, 28 Oct 2026 11:22:15 -0500 Subject: [PATCH] fix(nixos): raise sshd MaxSessions 50 -> 100 Follow-up to the MaxStartups raise (dezren39/nix#1020). All fleet laptop access multiplexes as channels over one shared SSH connection (laptop-ssh.sh ControlMaster); concurrent sweeps, queue workers, and long-lived --watch commands each hold a channel. 50 left only ~5x headroom over observed ordinary load and channel-open failures present as random SSH flakiness. 100 costs nothing meaningful. Eval-verified on amd (MaxSessions=100), format-check clean. --- nixos/services/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/services/default.nix b/nixos/services/default.nix index bd3ecd4803..7cdcb0c6ba 100644 --- a/nixos/services/default.nix +++ b/nixos/services/default.nix @@ -51,7 +51,10 @@ # 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; + # 50 -> 100 (2026-10-28): every fleet command multiplexes as a + # channel over one shared connection; bursts of sweeps/queue + # workers plus long-lived --watch commands can exhaust 50. + MaxSessions = 100; # Unauthenticated slots recycle in half the stock time, so a # burst drains faster instead of piling up against MaxStartups. LoginGraceTime = 60;