From 640d74b16d95bb7fa630bc0912df9460972b0512 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 5 Sep 2024 22:58:43 +0200 Subject: [PATCH] Improve wifi support for Macbooks in installer --- modules/installer/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/installer/default.nix b/modules/installer/default.nix index 228d911..101ae08 100644 --- a/modules/installer/default.nix +++ b/modules/installer/default.nix @@ -31,6 +31,15 @@ in { enable = true; theme = "breeze"; }; + + # NOTE(m): Enable kernel modules that improve wifi support on + # Macbooks during installation. + # See https://nixos.org/manual/nixos/stable/#sec-building-image-drivers + # FIXME(m): See if this can be cleaned up and go somewhere else and + # ensure this doesn't break non-Apple hardware. + initrd.kernelModules = [ "wl" ]; + kernelModules = [ "kvm-intel" "wl" ]; + extraModulePackages = [config.boot.kernelPackages.broadcom_sta]; }; # Adds terminus_font for people with HiDPI displays