apple/t2: add Wi-Fi and Bluetooth firmware option

This commit is contained in:
mkorje
2025-03-17 12:40:06 +11:00
committed by mergify[bot]
parent e8c83f0759
commit 36d0027ef4
6 changed files with 354 additions and 0 deletions

View File

@@ -63,6 +63,19 @@ in
example = "latest";
description = "The kernel release stream to use.";
};
firmware = {
enable = lib.mkEnableOption "automatic and declarative Wi-Fi and Bluetooth firmware configuration";
version = lib.mkOption {
type = types.enum [
"monterey"
"ventura"
"sonoma"
];
default = "sonoma";
example = "ventura";
description = "The macOS version to use.";
};
};
};
config = lib.mkMerge [
@@ -105,5 +118,11 @@ in
options apple-gmux force_igd=y
'';
})
(lib.mkIf t2Cfg.firmware.enable {
# Configure Wi-Fi and Bluetooth firmware
hardware.firmware = [
(pkgs.callPackage ./pkgs/brcm-firmware { version = t2Cfg.firmware.version; })
];
})
];
}