Disable wifi power_save on framework

This commit is contained in:
Natsu Kagami 2024-07-08 14:16:49 +02:00
parent 527c6ba4e5
commit 2657e7f3fc
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 15 additions and 0 deletions

View file

@ -13,6 +13,8 @@
../modules/personal/fonts ../modules/personal/fonts
# Encrypted DNS # Encrypted DNS
../modules/services/edns ../modules/services/edns
# Wireless card
./wireless.nix
]; ];
# services.xserver.enable = true; # services.xserver.enable = true;

View file

@ -0,0 +1,13 @@
{ pkgs, lib, ... }: {
environment.systemPackages = with pkgs; [ iw ];
# Disable power_save on boot
services.udev.packages = [
(pkgs.writeTextFile {
name = "udev_disable_wifi_power_save";
destination = "/etc/udev/rules.d/10-wifi-power_save.rules";
text = ''
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wl*", RUN+="${lib.getExe pkgs.iw} dev $name set power_save off"
'';
})
];
}