mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
26 lines
487 B
Nix
26 lines
487 B
Nix
![]() |
{
|
||
|
config,
|
||
|
lib,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
cfg = config.hardware.xpad-noone;
|
||
|
in
|
||
|
{
|
||
|
options.hardware.xpad-noone = {
|
||
|
enable = lib.mkEnableOption "The Xpad driver from the Linux kernel with support for Xbox One controllers removed";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
boot = {
|
||
|
blacklistedKernelModules = [ "xpad" ];
|
||
|
extraModulePackages = with config.boot.kernelPackages; [ xpad-noone ];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
meta = {
|
||
|
maintainers = with lib.maintainers; [ Cryolitia ];
|
||
|
};
|
||
|
}
|