about summary refs log tree commit diff
path: root/apple
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 /apple
parent56b7d7254f6acb00112f25f9c38a2ff02f1f46c2 (diff)
downloadnixlib-93d292b8306e09a0273eb09eeee957f316b72be8.tar
nixlib-93d292b8306e09a0273eb09eeee957f316b72be8.tar.gz
nixlib-93d292b8306e09a0273eb09eeee957f316b72be8.tar.bz2
nixlib-93d292b8306e09a0273eb09eeee957f316b72be8.tar.lz
nixlib-93d292b8306e09a0273eb09eeee957f316b72be8.tar.xz
nixlib-93d292b8306e09a0273eb09eeee957f316b72be8.tar.zst
nixlib-93d292b8306e09a0273eb09eeee957f316b72be8.zip
apple/macbook-pro/11-5: init
Diffstat (limited to 'apple')
-rw-r--r--apple/macbook-pro/11-5/README.wiki8
-rw-r--r--apple/macbook-pro/11-5/default.nix17
2 files changed, 25 insertions, 0 deletions
diff --git a/apple/macbook-pro/11-5/README.wiki b/apple/macbook-pro/11-5/README.wiki
new file mode 100644
index 000000000000..6e1e8a82d053
--- /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 000000000000..b5c36a67f5dd
--- /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" ];
+}