diff --git a/hosts/FredOS-Gaming.nix b/hosts/FredOS-Gaming.nix index 3fdf6ff..42d5ff9 100644 --- a/hosts/FredOS-Gaming.nix +++ b/hosts/FredOS-Gaming.nix @@ -57,5 +57,22 @@ "net.ipv6.conf.all.accept_ra" = 0; "net.ipv6.conf.default.accept_ra" = 0; }; + + # NetworkManager only re-runs its connectivity probe on link-up or every + # 5 minutes. If the first boot probe races NM startup and reports + # "limited", GNOME caches that state until the next repoll — which is + # what surfaces as the persistent "?" icon. This oneshot kicks an + # explicit recheck once everything's online, which forces NM to + # transition to "full" and the icon clears. + systemd.services.nm-connectivity-kick = { + description = "Force NetworkManager connectivity recheck after boot"; + after = [ "NetworkManager.service" "network-online.target" ]; + wants = [ "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.networkmanager}/bin/nmcli networking connectivity check"; + }; + }; }; }