diff --git a/hosts/FredOS-Macbook.nix b/hosts/FredOS-Macbook.nix index 46d1111..43b0964 100644 --- a/hosts/FredOS-Macbook.nix +++ b/hosts/FredOS-Macbook.nix @@ -1,11 +1,6 @@ # hosts/FredOS-Macbook.nix { config, pkgs, lib, ... }: { - # 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; [ # Package names here @@ -19,7 +14,6 @@ }; # Enable Broadcom WL for Macbook - # Use config.boot.kernelPackages to match the kernel version from common.nix extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; blacklistedKernelModules = [ @@ -30,5 +24,10 @@ }; hardware.enableRedistributableFirmware = true; + + # Put nixpkgs config INSIDE the mkIf + nixpkgs.config.permittedInsecurePackages = [ + "broadcom-sta-6.30.223.271-59-6.18" + ]; }; }