dotfiles/modules/hardware/sleep.nix

9 lines
183 B
Nix
Raw Normal View History

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