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,33 +1,34 @@
# hosts/FredOS-Macbook.nix
{ config, pkgs, lib, ... }:
{
config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
environment.systemPackages = with pkgs; [
# Package names here
# Move this OUTSIDE the mkIf
nixpkgs.config.permittedInsecurePackages = [
"broadcom-sta-6.30.223.271-59-6.18"
];
# Bootloader
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
environment.systemPackages = with pkgs; [
# Package names here
];
# Bootloader
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# Enable Broadcom WL for Macbook
# Use config.boot.kernelPackages to match the kernel version from common.nix
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
blacklistedKernelModules = [
"b43"
"bcma"
"ssb"
];
};
# Enable Broadcom WL for Macbook
extraModulePackages = [ pkgs.linuxPackages.broadcom_sta ]; # Use pkgs, not config
blacklistedKernelModules = [
"b43"
"bcma"
"ssb"
];
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"
];
};
}