From cd2a9558417ce7f0fa99366366e94d94ad617afb Mon Sep 17 00:00:00 2001 From: devhell Date: Tue, 20 Feb 2024 10:40:28 +0000 Subject: machines/gunnr: add rtl88xxau-aircrack fix Without this the module doesn't build on kernel >6.7. Development seems to be slow upstream anyway, so this seems the most straight forward way of fixing it for now. --- machines/devhell/gunnr.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'machines') diff --git a/machines/devhell/gunnr.nix b/machines/devhell/gunnr.nix index 0c1f93b7..df65eb71 100644 --- a/machines/devhell/gunnr.nix +++ b/machines/devhell/gunnr.nix @@ -31,7 +31,20 @@ kernelParams = [ "pcie_aspm=off" ]; kernelModules = [ "kvm-amd" ]; - extraModulePackages = with config.boot.kernelPackages; [ rtl88xxau-aircrack ]; + extraModulePackages = [ + ( + config.boot.kernelPackages.rtl88xxau-aircrack.overrideAttrs + { + # https://github.com/aircrack-ng/rtl8812au/pull/1134 + src = pkgs.fetchFromGitHub { + owner = "crivasr"; + repo = "rtl8812au"; + rev = "c0d16813f5af3b464cdb6dd415c83d1f238e3548"; + hash = "sha256-jhX5apYbcYz6+kGGe1xZXXTerQJm3Gv4DoowDSSY8MY="; + }; + } + ) + ]; blacklistedKernelModules = [ ]; kernelPackages = lib.mkForce config.boot.zfs.package.latestCompatibleLinuxPackages; -- cgit 1.4.1