From 502e0aed3102124d7034a2ed2ed245e35c9b9a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rayan=20Nakib=20=28=D8=B1=D9=8A=D8=A7=D9=86=20=D9=86=D9=82?= =?UTF-8?q?=D9=8A=D8=A8=29?= Date: Sat, 7 Sep 2024 09:09:11 +0100 Subject: [PATCH] apple-macbook-pro-8-1: add README.md explaning to users how they can enable installtion of free packages needed for b43-firmware to work --- apple/macbook-pro/8-1/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apple/macbook-pro/8-1/README.md diff --git a/apple/macbook-pro/8-1/README.md b/apple/macbook-pro/8-1/README.md new file mode 100644 index 0000000..723df2e --- /dev/null +++ b/apple/macbook-pro/8-1/README.md @@ -0,0 +1,24 @@ +# MacBook Pro 8,1 + +## Enable unfree packages in your nix config for b43-firmware (wifi driver) to work + +### For b43-firmware only (Ideal) + +```nix +{lib, ...}: + +{ + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "b43-firmware" + ]; +} + +``` + +### For all packages + +```nix +{ + nixpkgs.config.allowUnfree = true; +} +```