Trying to install out of tree kernel modules

Hi! so i just found out that Linux kernel 5.9 is removed from unstable repo, since VirtualBox from repo is not currently working with 5.10, i’m sticking with kernel 5.6-rt. in another distributions with linux kernel <5.8 I used to use this driver from this repo (My wireless card is RTL8723DE)

I’m following this guide to install a custom out of tree kernel modules, here is the nix syntax :

{ stdenv, lib, fetchFromGitHub, kernel, ... }:

stdenv.mkDerivation rec {
  name = "rtw88-dc-${version}-${kernel.version}";
  version = "9999";

  src = fetchFromGitHub {
    owner = "lwfinger";
    repo = "rtw88";
  };

  sourceRoot = "source/linux/rtw88";
  hardeningDisable = [ "pic" "format" ];
  nativeBuildInputs = kernel.moduleBuildDependencies;

  makeFlags = [
    "KERNELRELEASE=${kernel.modDirVersion}"
    "KERNEL_DIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
    "INSTALL_MOD_PATH=$(out)"
  ];

  meta = with lib; {
    description = "The newest Realtek rtlwifi codes.";
    homepage = "https://github.com/lwfinger/rtw88";
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}

When i do the usual nixos-rebuild switch, it throws this error :

error: infinite recursion encountered, at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:303:28
(use '--show-trace' to show detailed location information)

Honestly I’m really confused, did i miss something?