summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRehno Lindeque <errantkid@gmail.com>2018-07-22 17:22:08 -0400
committerRehno Lindeque <errantkid@gmail.com>2018-07-30 17:55:13 -0400
commit93d292b8306e09a0273eb09eeee957f316b72be8 (patch)
tree9908cc9b468f91408908e3ec624f97c940a08f49
parent56b7d7254f6acb00112f25f9c38a2ff02f1f46c2 (diff)
apple/macbook-pro/11-5: init
-rw-r--r--README.org1
-rw-r--r--apple/macbook-pro/11-5/README.wiki8
-rw-r--r--apple/macbook-pro/11-5/default.nix17
3 files changed, 26 insertions, 0 deletions
diff --git a/README.org b/README.org
index ce0dcb0..1ed22ee 100644
--- a/README.org
+++ b/README.org
@@ -23,6 +23,7 @@ should look like:
| Apple MacBook Air 4,X | ~<nixos-hardware/apple/macbook-air/4>~ |
| Apple MacBook Air 6,X | ~<nixos-hardware/apple/macbook-air/6>~ |
| [[file:apple/macbook-pro/10-1][Apple MacBook Pro 10,1]] | ~<nixos-hardware/apple/macbook-pro/10-1>~ |
+| [[file:apple/macbook-pro/11-5][Apple MacBook Pro 11,5]] | ~<nixos-hardware/apple/macbook-pro/11-5>~ |
| Apple MacBook Pro 12,1 | ~<nixos-hardware/apple/macbook-pro/12-1>~ |
| [[file:dell/xps/15-9550][Dell XPS 15 9550]] | ~<nixos-hardware/dell/xps/15-9550>~ |
| [[file:inversepath/usbarmory][Inverse Path USB armory]] | ~<nixos-hardware/inversepath/usbarmory>~ |
diff --git a/apple/macbook-pro/11-5/README.wiki b/apple/macbook-pro/11-5/README.wiki
new file mode 100644
index 0000000..6e1e8a8
--- /dev/null
+++ b/apple/macbook-pro/11-5/README.wiki
@@ -0,0 +1,8 @@
+= Apple MacBook Pro 11,5 =
+
+This configuration will '''not''' work with MacBook Pro 11,2 or 11,3 models.
+
+The [https://support.apple.com/kb/SP719 MacBookPro11,4 and MacBookPro11,5] models ship with a discrete ATI graphics card (whereas MacBookPro11,2 and MacBookPro11,3 ship with NVidia cards). This is alongside the usual integrated Intel GPU.
+
+You may wish to look into dynamic switching between integrated and discrete graphics, but this config doesn't attempt it.
+
diff --git a/apple/macbook-pro/11-5/default.nix b/apple/macbook-pro/11-5/default.nix
new file mode 100644
index 0000000..b5c36a6
--- /dev/null
+++ b/apple/macbook-pro/11-5/default.nix
@@ -0,0 +1,17 @@
+{ lib, pkgs, ... }:
+
+{
+ imports = [
+ ../.
+ ../../../common/pc/laptop/ssd
+ <nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>
+ ];
+
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi.canTouchEfiVariables = true;
+
+ # Apparently this is currently only supported by ati_unfree drivers, not ati
+ hardware.opengl.driSupport32Bit = false;
+
+ services.xserver.videoDrivers = [ "ati" ];
+}