How to install driver for RTL8821AU chipsets

I had tried installing driver for RTL8821AU chipset using this package, but I was unable to get it working.

Please provide more details.

  1. How did you install the driver?
  2. What did you do while trying to get it to work?

Try this:

  boot.extraModulePackages = with config.boot.kernelPackages; [
    rtl8821au
  ];

If it doesn’t work, try this instead:

  boot.extraModulePackages = with config.boot.kernelPackages; [
    rtl88xxau-aircrack
  ];

In both cases you need to reboot after applying new configuration.

boot.extraModulePackages = with config.boot.kernelPackages; [
  rtl8821au
];

Worked