Move disabling wifi power saving to a host-specific file.
This commit is contained in:
@@ -383,9 +383,8 @@ in
|
||||
services.gvfs.enable = true;
|
||||
|
||||
# Auto-launch sway
|
||||
environment.loginShellInit = ''
|
||||
# TODO: This shouldn't be shoe-horned into the sway config
|
||||
doas iw dev wlan0 set power_save off
|
||||
# Run sway as the absolute last command in the login shell init. mkBefore = 500, plain = 1000, mkAfter = 1500
|
||||
environment.loginShellInit = lib.mkOrder 2000 ''
|
||||
[ -z "$WAYLAND_DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ] && [ "$(tty)" = "/dev/tty1" ] && exec ${pkgs.systemd}/bin/systemd-cat --identifier=sway sway
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user