mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 06:55:37 +00:00
d021baa1bb
required because they don't share all attributes
13 lines
280 B
Nix
13 lines
280 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
config = lib.mkIf (config.physical && pkgs.stdenv.isLinux) {
|
|
|
|
# Prevent wake from keyboard
|
|
powerManagement.powerDownCommands = ''
|
|
for wakeup in /sys/bus/usb/devices/1-*/power/wakeup; do echo disabled > $wakeup; done
|
|
'';
|
|
|
|
};
|
|
|
|
}
|