me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

turn off power save on pi

author
Sean Aye
date (Mar 22, 2026, 8:03 PM -0400) commit 7d30a35d parent 2a91ec2e change-id xprnwuks
+13 -1
+13 -1
hosts/pi-common/wifi.nix
··· 1 - { config, ... }: 1 + { config, pkgs, ... }: 2 2 3 3 { 4 4 # Pre-generated SSH host key for agenix decryption (shared across all Pis) ··· 31 31 extraConfig = '' 32 32 freq_list=5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5720 5745 5765 5785 5805 5825 33 33 ''; 34 + }; 35 + }; 36 + 37 + # Disable WiFi power save to prevent brcmfmac firmware hangs 38 + systemd.services.wifi-powersave-off = { 39 + description = "Disable WiFi power save"; 40 + after = [ "network.target" ]; 41 + wantedBy = [ "multi-user.target" ]; 42 + serviceConfig = { 43 + Type = "oneshot"; 44 + ExecStart = "${pkgs.iw}/bin/iw dev wlan0 set power_save off"; 45 + RemainAfterExit = true; 34 46 }; 35 47 }; 36 48 }