mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 22:45:37 +00:00
prevent keyboard from waking up machine
This commit is contained in:
parent
5e6dd8c2b8
commit
73c837b710
@ -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
|
||||
'';
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user