Move disabling wifi power saving to a host-specific file.

This commit is contained in:
Tom Alexander
2025-01-18 11:48:53 -05:00
parent 5170678a25
commit 8ac235cb8c
4 changed files with 19 additions and 4 deletions

View File

@@ -6,6 +6,7 @@
./optimized_build.nix
./power_management.nix
./screen_brightness.nix
./wifi.nix
];
# Generate with `head -c4 /dev/urandom | od -A none -t x4`

View File

@@ -0,0 +1,16 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
config = {
environment.loginShellInit = lib.mkIf (!config.me.buildingIso) ''
doas iw dev wlan0 set power_save off
'';
};
}