Hi
I need to install my USB WIFI driver (actually my USB WIFI works without installing driver but there is some bug** similar to when i was using other distros but this bug was getting fixed with installing driver)
so i added this to configuration.nix file
boot.extraModulePackages = [ config.boot.kernelPackages.rtl8188eus-aircrack ];
but when i tired to run nixos-rebuild switch it said
error: Package ‘rtl8188eus-aircrack-6.5.8-unstable-2022-03-19’ in /nix/store/kvz5368wsc21943p8038p3n90vzb1mbh-source/pkgs/os-specific/linux/rtl8188eus-aircrack/default.nix:39 is marked as broken, refusing to evaluate.
so i went to the source in nixpkgs and found this line
broken = (lib.versionAtLeast kernel.version "5.17") || ((lib.versions.majorMinor kernel.version) == "5.4" && kernel.isHardened);
so i think the problem is that my Linux kernel version is newer than 5.17
i think if nixpkgs updates the package to at least this commit which adds support for later kernel versions this problem hopefully will be fixed.
** i have dual boot with windows and by bug i mean if i boot into windows and then reboot into system does not detect USB WIFi and the only way (other then installing driver) is to unplug/plug the USB WIFI
Update : i just find a workaround. i put this to my configuration.nix file
boot.extraModulePackages = [
(config.boot.kernelPackages.rtl8188eus-aircrack.overrideAttrs {
src = pkgs.fetchFromGitHub {
owner = "aircrack-ng";
repo = "rtl8188eus";
rev = "3fae7237ba121f1169e9a2ea55040dc123697d3b";
hash = "sha256-ILSMEt9nMdg1ZbFeatWm8Yxf6a/E7Vm7KtKhN933KTc=";
};
patches = [ ];
meta.broken = false;
})
];