Net dongle doesn't work

Hello I’m new to Arch Linux systems and it’s my first time using Manjaro.

Yesterday I spent pretty much the entire afternoon/evening trying to find a driver that works on my USB/WIFI connection device.

Connector Model: Action A1200 USB Wi-Fi Adapter

Chipset Type: Realtek RTL8812AU.

I tried installing the driver I found on github: morrownr/8812au-20210820;

But I had a problem: dkms build error: 1

[sudo] senha para manjaro:
: ---------------------------
: v20240429
: x86_64 (kernel architecture)
: x86_64 (architecture to send to rcc)
: 8/8 (in-use/total processing units)
: 8017624 (total system memory)
: 6.9.5-1-MANJARO (kernel version)
: Linux (version of rcc used to compile the kernel)
: rcc 5.15.14
: dkms-3.0.12
: SecureBoot disabled
: ---------------------------

Checking for previously installed drivers…
Finished checking for and uninstalling previously installed drivers.
: ---------------------------

Starting installation.
Copying 8812au.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8812au-5.13.6-23
Creating symlink /var/lib/dkms/rtl8812au/5.13.6-23/source → /usr/src/rtl8812au-5.13.6-23
The driver was added to dkms successfully.
: ---------------------------

Error! Your kernel headers for kernel 6.9.5-1-MANJARO cannot be found at /usr/lib/modules/6.9.5-1-MANJARO/build or /usr/lib/modules/6.9.5-1-MANJARO/source.

Please install the linux-headers-6.9.5-1-MANJARO package or use the --kernelsourcedir option to tell DKMS where it’s located.

An error occurred. dkms build error: 1

Please report this error.

Please copy all screen output and paste it into the problem report.
Run the following before reattempting installation.

$ sudo ./

I was make download and install of Linux-headers-6.9.5-1-MANJARO; Linux61.

So the problema persists…

Someone can help? I’m about to give up

You have to install the headers before:

pamac install linux69-headers base-devel

In general (in terminal):

Install base devel:

pamac install base-devel

Install the appropriate kernel headers:

pamac install linux69-headers

Installl driver:
pamac build rtl8812au-dkms-git


Read the following: