Disable wifi power_save on framework
This commit is contained in:
parent
527c6ba4e5
commit
2657e7f3fc
|
@ -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;
|
||||||
|
|
13
nki-framework/wireless.nix
Normal file
13
nki-framework/wireless.nix
Normal 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"
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue