nixos-hardware/apple/macbook-pro/12-1/default.nix
2017-12-24 12:17:37 +00:00

14 lines
315 B
Nix

{ lib, ... }:
{
imports = [
../../.
<nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>
];
# USB subsystem wakes up MBP right after suspend unless we disable it.
services.udev.extraRules = lib.mkDefault ''
SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"
'';
}