Skip to content

Commit cbba9fe

Browse files
committed
broadcom-wl: bugfix
1 parent c1e6947 commit cbba9fe

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

apple/imac/14-2/default.nix

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,17 @@
4949
"bcma"
5050
];
5151
kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.0") pkgs.linuxPackages_latest;
52+
extraModulePackages =
53+
lib.mkIf config.hardware.broadcom.wifi.enableLegacyDriverWithKnownVulnerabilities
54+
[
55+
(config.boot.kernelPackages.broadcom_sta.overrideAttrs (oldAttrs: {
56+
meta = oldAttrs.meta // {
57+
knownVulnerabilities = [ ];
58+
};
59+
}))
60+
];
5261
};
5362

54-
extraModulePackages =
55-
lib.mkIf config.hardware.broadcom.wifi.enableLegacyDriverWithKnownVulnerabilities
56-
[
57-
(config.boot.kernelPackages.broadcom_sta.overrideAttrs (oldAttrs: {
58-
meta = oldAttrs.meta // {
59-
knownVulnerabilities = [ ];
60-
};
61-
}))
62-
];
63-
6463
hardware = {
6564
bluetooth.enable = lib.mkDefault true;
6665
};

0 commit comments

Comments
 (0)