Update FredOS-Macbook.nix

This commit is contained in:
ediblerope 2025-12-04 18:10:52 +00:00 committed by GitHub
parent f98da085d1
commit 58f7883e72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,12 @@
# hosts/FredOS-Macbook.nix # hosts/FredOS-Macbook.nix
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") { # Move this OUTSIDE the mkIf
nixpkgs.config.permittedInsecurePackages = [
"broadcom-sta-6.30.223.271-59-6.18"
];
config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Package names here # Package names here
]; ];
@ -14,7 +19,8 @@ config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
}; };
# Enable Broadcom WL for Macbook # Enable Broadcom WL for Macbook
extraModulePackages = [ pkgs.linuxPackages.broadcom_sta ]; # Use pkgs, not config # Use config.boot.kernelPackages to match the kernel version from common.nix
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
blacklistedKernelModules = [ blacklistedKernelModules = [
"b43" "b43"
@ -24,10 +30,5 @@ config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
}; };
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
};
nixpkgs.config.permittedInsecurePackages = [
"broadcom-sta-6.30.223.271-59-6.18" # Updated version number
"broadcom-sta-6.30.223.271-59-6.12.60"
];
};
} }