Skip to content
Open
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
40 changes: 40 additions & 0 deletions apple/macmini/6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# macmini 6.1/6.2

Everything should be working flawlessly **except** the wifi card which is not included in this config for performance and security reason.

Here is the potential fix you can use for this :
- enable the b43 driver (it work but wifi performance are terrible)
```nix
boot = {
kernelModules = [
"b43"
];
blacklistedKernelModules = [
"wl"
"bcma"
];
};
networking.enableB43Firmware = true;
```
- enable the insecure broadcom_sta driver
```nix
nixpkgs.config.allowInsecurePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"broadcom-sta" # aka “wl”
];
boot = {
kernelModules = [
"wl"
];
blacklistedKernelModules = [
"b43"
"bcma"
];
extraModulePackages = [
# install broadcom driver for macos wifi
# note : the user will need to add it to `permittedInsecurePackages`
config.boot.kernelPackages.broadcom_sta
];
};
```
22 changes: 22 additions & 0 deletions apple/macmini/6/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
lib,
...
}:
{
imports = [
../.
../../../common/gpu/24.05-compat.nix
../../../common/cpu/intel/ivy-bridge/default.nix
];

hardware.facetimehd.enable = false;

boot.kernelModules = [
"coretemp"
"applesmc"
];

services = {
thermald.enable = lib.mkDefault true;
};
}
5 changes: 5 additions & 0 deletions common/cpu/intel/ivy-bridge/cpu-only.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
imports = [
../cpu-only.nix
];
}
6 changes: 6 additions & 0 deletions common/cpu/intel/ivy-bridge/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
imports = [
../cpu-only.nix
../../../gpu/intel/ivy-bridge
];
}
8 changes: 8 additions & 0 deletions common/gpu/intel/ivy-bridge/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
imports = [ ../. ];

hardware.intelgpu = {
vaapiDriver = "intel-vaapi-driver";
enableHybridCodec = true;
};
}
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
apple-macbook-pro-12-1 = import ./apple/macbook-pro/12-1;
apple-macbook-pro-14-1 = import ./apple/macbook-pro/14-1;
apple-macmini-4-1 = import ./apple/macmini/4;
apple-macmini-6 = import ./apple/macmini/6;
apple-t2 = import ./apple/t2;
asrock-rack-altrad8ud-1l2t = import ./asrock-rack/altrad8ud-1l2t;
asus-battery = import ./asus/battery.nix;
Expand Down