diff options
author | Yegor Timoshenko <yegortimoshenko@gmail.com> | 2017-12-24 12:16:10 +0000 |
---|---|---|
committer | Yegor Timoshenko <yegortimoshenko@gmail.com> | 2017-12-24 12:16:10 +0000 |
commit | cbe052c49e80ccb27d2573e9dc9e7bbc6df4a0a4 (patch) | |
tree | 5c7be480d03c1b96c610a33e1734babfd4133546 /apple | |
parent | a8b7b6ffe5813545e289404e504a21e2222f7ab5 (diff) |
apple/macbook-pro/12-1: clean up
Diffstat (limited to 'apple')
-rw-r--r-- | apple/macbook-pro/12-1/default.nix | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/apple/macbook-pro/12-1/default.nix b/apple/macbook-pro/12-1/default.nix index c755ce0..78a7d6f 100644 --- a/apple/macbook-pro/12-1/default.nix +++ b/apple/macbook-pro/12-1/default.nix @@ -1,17 +1,12 @@ -{ config, lib, pkgs, ... }: -{ - imports = - [ <nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix> - <nixpkgs/nixos/modules/installer/scan/not-detected.nix> - ]; +{ lib, ... }: - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; +{ + imports = [ + <nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix> + ]; - # The USB subsystem wakes up the MBP directly after suspend if - # we don't disable it. - services.udev.extraRules = '' + # 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" ''; } |