NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.58k stars 13.73k forks source link

AX200 WiFi not recognized on NixOS #130280

Closed stefanDeveloper closed 3 years ago

stefanDeveloper commented 3 years ago

Describe the bug Currently I'm trying to set up my Intel WiFi AX200. However, I run into the problem that iwlwifi doesn't find it although Intel firmware is provided by the Linux kernel.

lsmod | grep iwl
iwlmvm                380928  0
mac80211              819200  1 iwlmvm
led_class              20480  4 snd_hda_codec_generic,input_leds,iwlmvm,thinkpad_acpi
iwlwifi               348160  1 iwlmvm
cfg80211              831488  3 iwlmvm,iwlwifi,mac80211

$ lspci | grep AX doesn't output anything.

$ dmesg | grep iwlwifi doesn't output anything.

$ rfkill
ID TYPE      DEVICE                   SOFT      HARD
 0 bluetooth tpacpi_bluetooth_sw unblocked unblocked
 1 wwan      tpacpi_wwan_sw        blocked unblocked
 3 bluetooth hci0                unblocked unblocked

I'm not sure if I oversee something in my configuration or if this is general bug. I also checked the other issue #93452, but that didn't help me either.

To Reproduce Steps to reproduce the behavior:

1. Install AX200 card
2. rfkill -> check that there is no wireless interface or whatsoever

Expected behavior For wifi to work

Notify maintainers

Metadata

Maintainer information:

Additionally, I added my configuration.

{ config, pkgs, ... }:

{
  imports =
    [ # Include the results of the hardware scan.
      <nixos-hardware/lenovo/thinkpad/t14/amd/gen1>
      ./hardware-configuration.nix
    ];

  nixpkgs.config.allowUnfree = true;
  # Use the systemd-boot EFI boot loader.
  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
  boot.kernelModules = [ "iwlwifi" "iwlmvm "]; 
  boot.extraModprobeConfig = ''
    options bt_coex_active=0 swcrypto=1 11n_disable=8
  '';
  hardware.enableAllFirmware = true;
  hardware.enableRedistributableFirmware = true;
  hardware.firmware = with pkgs; [ 
    wireless-regdb 
  ];

  networking.hostName = "nixos"; # Define your hostname.
  # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.
  networking.networkmanager.enable = true;
stefanDeveloper commented 3 years ago

Oke, I found out what my actual problem was:

After checking my network controller, it turned out that I have an Realtek Semiconductor Co. Ltd Device 8852. By the help of this I had to include rtw89 as following in my configuration:

boot.extraModulePackages = [config.boot.kernelPackages.rtw89];

However, this nixospkgs is still unstable, and therefore you have to update your channel to unstable. Regarding the issue, I'll close it.