mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 11:30:13 +00:00
prevent keyboard from waking up machine
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
./monitors.nix
|
||||
./mouse.nix
|
||||
./networking.nix
|
||||
./sleep.nix
|
||||
./wifi.nix
|
||||
];
|
||||
|
||||
|
8
modules/hardware/sleep.nix
Normal file
8
modules/hardware/sleep.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ ... }: {
|
||||
|
||||
# Prevent wake from keyboard
|
||||
powerManagement.powerDownCommands = ''
|
||||
echo disabled > /sys/bus/usb/devices/1-6/power/wakeup
|
||||
'';
|
||||
|
||||
}
|
Reference in New Issue
Block a user