nixos/hosts/FredOS-Macbook.nix

34 lines
761 B
Nix
Raw Normal View History

2025-12-02 22:40:06 +00:00
# hosts/FredOS-Macbook.nix
2025-12-02 21:23:06 +00:00
{ config, pkgs, lib, ... }:
{
2025-12-04 13:32:37 +00:00
config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
environment.systemPackages = with pkgs; [
# Package names here
2025-12-04 13:23:31 +00:00
];
2025-12-04 13:32:37 +00:00
# Bootloader
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
2025-12-02 22:40:06 +00:00
};
2025-12-04 13:32:37 +00:00
# Enable Broadcom WL for Macbook
2025-12-04 18:06:25 +00:00
extraModulePackages = [ pkgs.linuxPackages.broadcom_sta ]; # Use pkgs, not config
2025-12-02 22:40:06 +00:00
2025-12-04 13:32:37 +00:00
blacklistedKernelModules = [
"b43"
"bcma"
"ssb"
2025-12-02 22:40:06 +00:00
];
};
2025-12-04 13:32:37 +00:00
hardware.enableRedistributableFirmware = true;
nixpkgs.config.permittedInsecurePackages = [
2025-12-04 18:06:25 +00:00
"broadcom-sta-6.30.223.271-59-6.18" # Updated version number
2025-12-04 18:07:40 +00:00
"broadcom-sta-6.30.223.271-59-6.12.60"
2025-12-04 13:32:37 +00:00
];
};
2025-12-02 21:23:06 +00:00
}