dotfiles/modules/hardware/sleep.nix
2022-05-19 08:48:09 -04:00

10 lines
209 B
Nix

{ ... }: {
# 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
'';
}