Config for TP Link AX1800 usb dongle

I am looking for config configuration for my ax1800 usb3 dongle.

it has a lsusb output of
“ID 0bda:1a2b Realtek Semiconductor Corp. RTL8188GU 802.11n WLAN Adapter (Driver CDROM Mode)”

I can use the normal recompiled driver for the linux kernel and it works find in other linuxs distros except nixos. Frustrating. That one is on github GitHub - lwfinger/rtl8852au.

Any help would be appreciated.

Eventually solved it myself…

config entries…

hardware.usb-modeswitch.enable = true; # turn off usb cd drivers and expose real devices

boot.initrd.kernelModules = [ “8852au” ];
boot.extraModulePackages = [ config.boot.kernelPackages.rtl8852au ];

in your apps (environment.systemPackages) list add linuxKernel.packages.linux_5_15_hardened.rtw89 to inject the module defs.

The 8852au is how it is supported under the normal linux kernel. Change it to your support your device.