Switch NetworkManager WiFi backend to iwd to resolve repeated wpa_supplicant disconnects caused by nl80211 send_event_marker incompatibility with iwlwifi. Each disconnect was triggering avahi SIGHUP reloads, causing .local name resolution to fail for several minutes at a time. Also disable WiFi power save in TLP and enable IPv6 mDNS resolution via NSS (nssmdns6) for hosts that only advertise IPv6 addresses. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
772 B
Nix
30 lines
772 B
Nix
{ config, pkgs, inputs, ... }:
|
|
{
|
|
services.thermald.enable = true;
|
|
|
|
services.power-profiles-daemon.enable = false;
|
|
|
|
services.tlp = {
|
|
enable = true;
|
|
settings = {
|
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
|
|
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
|
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
|
|
|
CPU_MIN_PERF_ON_AC = 0;
|
|
CPU_MAX_PERF_ON_AC = 100;
|
|
CPU_MIN_PERF_ON_BAT = 0;
|
|
CPU_MAX_PERF_ON_BAT = 20;
|
|
|
|
#Optional helps save long term battery health
|
|
# START_CHARGE_THRESH_BAT0 = 40; # 40 and below it starts to charge
|
|
STOP_CHARGE_THRESH_BAT0 = 81; # 80 and above it stops charging
|
|
|
|
WIFI_PWR_ON_AC = "off";
|
|
WIFI_PWR_ON_BAT = "off";
|
|
|
|
};
|
|
};
|
|
}
|