nixos/hosts/FredOS-Macbook.nix

34 lines
773 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 18:10:52 +00:00
config = lib.mkIf (config.networking.hostName == "FredOS-Macbook") {
environment.systemPackages = with pkgs; [
# Package names here
];
2025-12-02 22:40:06 +00:00
2025-12-04 18:10:52 +00:00
# Bootloader
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# Enable Broadcom WL for Macbook
extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
blacklistedKernelModules = [
"b43"
"bcma"
"ssb"
];
};
2025-12-02 22:40:06 +00:00
2025-12-04 18:10:52 +00:00
hardware.enableRedistributableFirmware = true;
2025-12-04 18:13:01 +00:00
# Put nixpkgs config INSIDE the mkIf
nixpkgs.config.permittedInsecurePackages = [
"broadcom-sta-6.30.223.271-59-6.18"
];
2025-12-02 22:40:06 +00:00
};
2025-12-02 21:23:06 +00:00
}