I have a problem with installing driver form github?

i want to install wifi adapter rtl8188gu from github GitHub - McMCCRU/rtl8188gu: Driver for Linux RTL8188GU (RTL8710B) (VID:PID = 0x0BDA:0xB711)
but i still get this message after commond : make;

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.6.46/build M=/home/agoos/rtl8188gu modules
make[1]: Entering directory ‘/home/agoos/rtl8188gu’
make[1]: *** /lib/modules/6.6.46/build: Not a directory. Stop.
make[1]: Leaving directory ‘/home/agoos/rtl8188gu’
make: *** [Makefile:1895: modules] Error 2

i do install
pkgs.gcc
linux-firmware
pkgs.gunmake
pkgs.bc
inuxPackages.kernel
linuxPackages.kernel.dev
linuxPackages_latest.kernel.dev

hardware.enableAllFirmware = true;

some help ?
thank you …

Trying to install with manual make commands like you would on other distros is not going to work. NixOS doesn’t install things in standard locations like that. You should make a derivation for the kernel module and add it to your configuration. See the wiki page on the linux kernel, particularly the section about out-of-tree modules: Linux kernel - NixOS Wiki

thank u for ur time
nixos is little hard hh…