summaryrefslogtreecommitdiffstats
path: root/apple/macbook-pro/12-1
diff options
context:
space:
mode:
authorYegor Timoshenko <yegortimoshenko@gmail.com>2017-12-22 20:17:00 +0300
committerzimbatm <zimbatm@zimbatm.com>2017-12-22 17:17:00 +0000
commit3c9f432a7146115b2d0b6200c4c19101c29caaba (patch)
tree0e0a9c6ab58f8eda82624a5b7f7238fefb6244ed /apple/macbook-pro/12-1
parent3f2fbacb216c8905f8ca15d2c24fe95472fb9ab2 (diff)
treewide: modules -> profiles, separate dirs, list in README (#29)
Enforce proper naming: all paths are lowercase and hyphen-separated, if there's a line of models (aspire, macbook-pro, thinkpad) it becomes a subdirectory. Documentation for profiles is moved to README files in respective directories. Add an Org mode table that lists all available profiles and their paths. Instead of fetching repo locally, use a Nix channel. Making hardware profiles read-only should improve quality and amount of participation long-term.
Diffstat (limited to 'apple/macbook-pro/12-1')
-rw-r--r--apple/macbook-pro/12-1/default.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/apple/macbook-pro/12-1/default.nix b/apple/macbook-pro/12-1/default.nix
new file mode 100644
index 0000000..c755ce0
--- /dev/null
+++ b/apple/macbook-pro/12-1/default.nix
@@ -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"
+ '';
+}