Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treewide: Add new profile for Apple MacBook Pro 8,1 #1109

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ See code for all available configurations.
| [Apple MacBook Air 3,X](apple/macbook-air/3) | `<nixos-hardware/apple/macbook-air/3>` |
| [Apple MacBook Air 4,X](apple/macbook-air/4) | `<nixos-hardware/apple/macbook-air/4>` |
| [Apple MacBook Air 6,X](apple/macbook-air/6) | `<nixos-hardware/apple/macbook-air/6>` |
| [Apple MacBook Pro 8,1](apple/macbook-pro/8-1) | `<nixos-hardware/apple/macbook-pro/8-1>` |
| [Apple MacBook Pro 10,1](apple/macbook-pro/10-1) | `<nixos-hardware/apple/macbook-pro/10-1>` |
| [Apple MacBook Pro 11,5](apple/macbook-pro/11-5) | `<nixos-hardware/apple/macbook-pro/11-5>` |
| [Apple MacBook Pro 12,1](apple/macbook-pro/12-1) | `<nixos-hardware/apple/macbook-pro/12-1>` |
Expand Down
24 changes: 24 additions & 0 deletions apple/macbook-pro/8-1/README.md
Original file line number Diff line number Diff line change
@@ -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;
}
```
11 changes: 11 additions & 0 deletions apple/macbook-pro/8-1/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:

{
imports = [
../.
../../../common/gpu/intel/sandy-bridge
../../../common/pc/laptop/ssd
];

networking.enableB43Firmware = lib.mkDefault true;
}
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
apple-macbook-air-4 = import ./apple/macbook-air/4;
apple-macbook-air-6 = import ./apple/macbook-air/6;
apple-macbook-pro = import ./apple/macbook-pro;
apple-macbook-pro-8-1 = import ./apple/macbook-pro/8-1;
apple-macbook-pro-10-1 = import ./apple/macbook-pro/10-1;
apple-macbook-pro-11-5 = import ./apple/macbook-pro/11-5;
apple-macbook-pro-12-1 = import ./apple/macbook-pro/12-1;
Expand Down