joycond: don't use dkms hid-nintendo on kernel 5.16 or newer

The module has since been mainlined into the kernel. See #163929.
This commit is contained in:
Martino Fontana 2022-03-19 15:14:39 +01:00
parent 73ad5f9e14
commit fb6dbccbfa

View file

@ -22,13 +22,9 @@ with lib;
};
config = mkIf cfg.enable {
environment.systemPackages = [
kernelPackages.hid-nintendo
cfg.package
];
environment.systemPackages = [ cfg.package ];
boot.extraModulePackages = [ kernelPackages.hid-nintendo ];
boot.kernelModules = [ "hid_nintendo" ];
boot.extraModulePackages = optional (versionOlder kernelPackages.kernel.version "5.16") kernelPackages.hid-nintendo;
services.udev.packages = [ cfg.package ];