nixos-config/system/laptop.nix
Christoph Heiss 15c40d991c
system: laptop: Disable Wi-Fi power-saving
This completely dimishes /any/ Wi-Fi performance it can potentially drop
it as low as a few KiB/s ..

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-09-21 20:17:08 +02:00

19 lines
394 B
Nix

{
services.tlp = {
enable = true;
settings = {
# Audio
SOUND_POWER_SAVE_ON_AC = 0;
# File systems
MAX_LOST_WORK_SECS_ON_AC = 10;
MAX_LOST_WORK_SECS_ON_BAT = 30;
# Radio devices
DEVICES_TO_DISABLE_ON_STARTUP = "bluetooth wwan";
WIFI_PWR_ON_BAT = "off";
# USB
USB_EXCLUDE_AUDIO = 0;
USB_EXCLUDE_PHONE = 1;
};
};
}