dotfiles/modules/hardware/sleep.nix
2022-05-29 13:44:45 -04:00

9 lines
183 B
Nix

{ ... }: {
# Prevent wake from keyboard
powerManagement.powerDownCommands = ''
for wakeup in /sys/bus/usb/devices/1-*/power/wakeup; do echo disabled > $wakeup; done
'';
}