From e68d2d64647cafce4a691ecf5352d83f3ee918c5 Mon Sep 17 00:00:00 2001 From: rope Date: Wed, 29 Jul 2026 17:24:25 +0100 Subject: [PATCH] macbook: cap nix download concurrency to stop wl wifi drops --- hosts/FredOS-Macbook.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/FredOS-Macbook.nix b/hosts/FredOS-Macbook.nix index e5a2dd8..6040e1b 100644 --- a/hosts/FredOS-Macbook.nix +++ b/hosts/FredOS-Macbook.nix @@ -20,6 +20,13 @@ nix.settings.max-jobs = 0; + # max-jobs = 0 means an update is pure substitution, and nix's default + # 25 parallel HTTPS streams saturate the link hard enough that the + # out-of-tree broadcom_sta (wl) driver drops association mid-build — + # only a manual wifi reconnect brings it back. Cap the concurrency. + nix.settings.http-connections = 8; + nix.settings.max-substitution-jobs = 4; + services.tlp.enable = false; services.power-profiles-daemon.enable = true; # Quickshell's battery widget reads org.freedesktop.UPower over DBus