Skip to content

Missing WiFi driver while installing NixOS 16.03 on my Mac Mini 7,1 #15162

Closed

Description

@ThomasMader

This comes from #11540 but is separated into this issue.
I installed NixOS unstable (16.03) on my Mac Mini 7,1 and have the following probem with it.

The Live CD wasn't able to provide me with WiFi. I guess the Live CD doesn't come with the needed drivers for my WiFI card (BCM4360 14e4:43a0) which are commercial :-( -> broadcom_sta
I resolved my problem by using an Ethernet connection, after the installation WiFi worked.
Would be nice if those could be packaged with the Live CD.

Activity

  1. matthewbauer commented on May 3, 2016

    @matthewbauer
    Member

    The pkg "pkgs.broadcom_sta" in NixOS configuration should do it, but I'm not sure if we're allowed to distribute it. Does wifi work with other live cds?

  2. vcunat commented on May 7, 2016

    @vcunat
    Member

    IIRC it is redistributable (and there are very few drivers that aren't).

    We have a policy that Hydra doesn't build anything depending on unfree stuff, including the ISOs. Maybe we might make an exception for redistributable drivers?

  3. added
    0.kind: enhancement
    6.topic: nixos
    6.topic: policy discussion
    on May 7, 2016
  4. vcunat commented on May 7, 2016

    @vcunat
    Member

    /cc @edolstra about allow-ability of unfree drivers on Hydra.

  5. rasendubi commented on May 26, 2016

    @rasendubi
    Member

    My friend suffered from the same issue. He has the same Wi-Fi card (BCM4360 14e4:43a0), and the network doesn't work on the Live CD. Unfortunately, he has no Ethernet...

    b43 driver failed with:

    b43-phy0 ERROR: FOUND UNSUPPORTED PHY (Analog 12, Type 11 (AC), Revision 1)
    b43: probe of bcma0:1 failed with error -95
    

    So I ended up packing a custom Live CD with the broadcom_sta. Can confirm it works fine.

    I've checked up broadcom_sta is unfreeRedistributable (https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/broadcom-sta/default.nix#L45), so it would be nice to include it in the default image.

  6. matthewbauer commented on May 27, 2016

    @matthewbauer
    Member

    broadcom_sta should be able to just go into hardware.firmware in nixos/modules/hardware/all-firmware.nix. The biggest issue though is that we want to use open source drivers when they are available.

    according to https://wiki.debian.org/wl:

    • BCM4313, BCM43224 and BCM43225 are supported by brcmsmac (already included)
    • BCM4311, BCM4312, BCM4321, BCM4322 and BCM4331 are supported by b43 (already included)

    That leaves BCM43227 BCM43228 BCM43142 BCM43142 and BCM4360 that will need the broadcom provided "sta" driver. I don't know if there is a way to let only enable it for certain hardware?

    While we're at it, can we see if there is any other nonfree wifi drivers that should be included?

  7. rasendubi commented on Jun 11, 2016

    @rasendubi
    Member

    Any update on this?

  8. rasendubi commented on Sep 9, 2016

    @rasendubi
    Member

    The issue seems to be waiting on @edolstra's input

  9. rasendubi commented on Oct 29, 2016

    @rasendubi
    Member

    (triage) @domenkozar, could you look into this?

  10. vitvakatu commented on Apr 10, 2017

    @vitvakatu

    Hello! I want to try nixos on my laptop. Unfortunately, I have BCM43142 WiFi module, which is not working without proprietary drivers. I suppose, broadcom_sta will make it working.
    But I don't have opportunity to use wired connection during installation.
    Perhaps, someone can make custom installation ISO for me?

  11. rasendubi commented on Apr 10, 2017

    @rasendubi
    Member

    @vitvakatu here you go!

    NixOS minimal (330M)

    $ nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-minimal.nix
    $ sha256sum nixos-17.03.git.12a3947-x86_64-linux.iso
    fc762c9f94f0ca1ae48c9ccf0de9935b34503e7991191bcaf4b389adad338b75  nixos-17.03.git.12a3947-x86_64-linux.iso
    

    NixOS graphical KDE (806M)

    $ nix-build -A config.system.build.isoImage -I nixos-config=modules/installer/cd-dvd/installation-cd-graphical-kde.nix
    $ sha256sum nixos-17.03.git.12a3947-x86_64-linux.iso
    b564729a25dc92df2113324422820e7efe7f2cc47a33182c71379f25710d1c63  nixos-17.03.git.12a3947-x86_64-linux.iso
    

    Built from https://github.com/rasendubi/nixpkgs/tree/nixos-broadcom-sta, nixos directory.

  12. vitvakatu commented on Apr 10, 2017

    @vitvakatu

    @rasendubi Thank you so much! I successfully installed it :)

  13. kyp0717 commented on Sep 7, 2017

    @kyp0717

    I have the same problem - a wireless card made by broadcom. However, I am able to connect via ethernet.
    Can you please provide the steps to install the broadcom wireless card when connected via ethernet?

  14. 26 remaining items

  15. added
    6.topic: darwin
    on Mar 25, 2021
  16. removed this from the 19.09 milestone on May 31, 2021
  17. Julian commented on Dec 1, 2021

    @Julian

    In case anyone else has the same issue, after #15162 (comment) I still have some remaining issues trying to install on a Mac (an iMac in my case).

    WiFi in the live USB works fine, but in the installed system I still can't get it to work. First one is a silly one, which is if you find you have no WiFi adapter found by Gnome after the install, you have to make sure you remembered to add your user to the networkmanager group via extraGroups, c.f. https://nixos.org/manual/nixos/stable/#sec-user-management.

    Second is even after that, now I can connect to WiFi, but cannot get to the internet, just my local network. Somehow I think default routes I believe are being incorrectly discovered, but I don't know how to fix that yet. Will update after figuring it out (or asking for help).

    EDIT: OK, indeed it was incorrect default routes, running sudo ip route del default && sudo ip route add default via $MYROUTERIP lets me reach the internet now. Not sure why the LiveUSB got me working internet and the booted system didn't -- I'm no expert neither on NixOS nor networking, so this may be offtopic for this ticket, if so feel free to hide the comment, but leaving it here given as I say, this worked fine on the LiveUSB boot, and I have no other LAN devices with WiFi issues, so maybe it'll help someone else.

  18. flokli commented on Apr 11, 2022

    @flokli
    Member

    I wrote some docs in #168306, which should probably document this sufficiently.

  19. added a commit that references this issue on Apr 12, 2022
    9ff1ab4
  20. HHR2020 commented on Apr 30, 2022

    @HHR2020
    Contributor

    In case anyone else has the same issue, after #15162 (comment) I still have some remaining issues trying to install on a Mac (an iMac in my case).

    WiFi in the live USB works fine, but in the installed system I still can't get it to work. First one is a silly one, which is if you find you have no WiFi adapter found by Gnome after the install, you have to make sure you remembered to add your user to the networkmanager group via extraGroups, c.f. https://nixos.org/manual/nixos/stable/#sec-user-management.

    Second is even after that, now I can connect to WiFi, but cannot get to the internet, just my local network. Somehow I think default routes I believe are being incorrectly discovered, but I don't know how to fix that yet. Will update after figuring it out (or asking for help).

    EDIT: OK, indeed it was incorrect default routes, running sudo ip route del default && sudo ip route add default via $MYROUTERIP lets me reach the internet now. Not sure why the LiveUSB got me working internet and the booted system didn't -- I'm no expert neither on NixOS nor networking, so this may be offtopic for this ticket, if so feel free to hide the comment, but leaving it here given as I say, this worked fine on the LiveUSB boot, and I have no other LAN devices with WiFi issues, so maybe it'll help someone else.

    I encountered the same route problem too. For some reason, I have to let the system installed on my computer boot in legacy mode, instead of EFI. As I have tested, networkmanager with wpa_supplicant as its backend doesn't work well, but it works if you only use wpa_supplicant without networkmanager. However, simply using wpa_supplicant without a gui front-end(wpa_gui doesn't work on my computer) isn't a good idea for me.

    I solved the problem by using iwd as the backend of networkmanager instead. Add the following code in your configuration.nix and everything will work perfectly!
    networking.networkmanager.wifi.backend = "iwd"

    NOTE: The system installed on my computer boots in legecy mode, but I boot the LiveCD in EFI mode. If your computer boots in EFI mode, you'll probably NOT encounter those problems.

    My machine is a MacBook Pro 12-mid.

  21. nixos-discourse commented on Jun 23, 2023

    @nixos-discourse
  22. nrolland commented on Aug 12, 2025

    @nrolland

    I tried to build a new minimal image for x86_64-linux for 25.05 with Broadcom drivers, but it seems that the default tmpfs is not big enough, which opens a new can of worms.

    If anyone can post the custom iso for 25.05 for x86_64 it would be greatly appreciated...
    (isn't there some online tool that we could use to build custom config like this ? )

    PS : bluetooth tethering with the graphical 25.11 install is the simplest way to make the wifi works (with plain configuration.nix changes)

  23. eureka-cpu commented on Jun 24, 2026

    @eureka-cpu
    Member

    Just ran into this trying to install on an intel 2012 mac mini, the driver must still not be included by default. I am only able to use wired connection.

  24. eureka-cpu commented on Jun 24, 2026

    @eureka-cpu
    Member

    wpa_supplicant shows the only drivers available are:

    nl80211
    wext
    wired
    macsec_linux
    

    With both apple and nixpkgs discontinuing support for x86_64-darwin, it would be great if we added the necessary wifi drivers so that this is no longer an issue.

  25. eureka-cpu commented on Jun 25, 2026

    @eureka-cpu
    Member

    For the time being if anyone finds themselves here, I have added the recommended patch from #168306 to a fork and have a release for the gnome and plasma graphical ISOs: https://github.com/eureka-cpu/nixpkgs/releases

    Releases use latest stable and check for changes monthly. They are released using ghcr because ISOs are too big and compression can't get them small enough, and I am too lazy to host them. Feel free to ping me in an issue there if you have problems.

    Also fair warning, broadcom_sta is insecure, but I'm not aware of a better solution if it exists.

    EDIT: Not currently working, will report back once I figure out why.

    Ok so I think gdm just doesn't want to play nice so Gnome is going straight to black screen. But plasma 6 does get you past that point, unfortunately though, adding the broadcom_sta settings from the manual don't seem to help. It still can't discover wifi networks.

    I tried all of the tips here in this issue, and ultimately could not get the wifi to recognize any network. The only thing that has worked is using ethernet, but this could just be an issue with intel mac minis and perhaps this will still be useful for someone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: enhancement6.topic: darwin6.topic: nixos6.topic: policy discussion

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions