Skip to content

Commit

Permalink
Merge pull request #26 from teh/master
Browse files Browse the repository at this point in the history
Add file for macbook pro 12,1 with suspend fix.
  • Loading branch information
garbas committed Oct 3, 2017
2 parents ecbb9c1 + 7f19480 commit 8d73b79
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apple/macbook-pro-12-1.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];

boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];

# The USB subsystem wakes up the MBP directly after suspend if
# we don't disable it.
services.udev.extraRules = ''
SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"
'';
}

0 comments on commit 8d73b79

Please sign in to comment.