dotfiles/modules/hardware/sleep.nix

10 lines
209 B
Nix
Raw Normal View History

{ ... }: {
# Prevent wake from keyboard
powerManagement.powerDownCommands = ''
echo disabled > /sys/bus/usb/devices/1-6/power/wakeup
echo disabled > /sys/bus/usb/devices/1-8/power/wakeup
'';
}