2022-03-05 16:20:37 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.hardware.xone;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.hardware.xone = {
|
2024-09-19 14:19:46 +00:00
|
|
|
enable = lib.mkEnableOption "the xone driver for Xbox One and Xbox Series X|S accessories";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2022-03-05 16:20:37 +00:00
|
|
|
boot = {
|
|
|
|
blacklistedKernelModules = [ "xpad" "mt76x2u" ];
|
|
|
|
extraModulePackages = with config.boot.kernelPackages; [ xone ];
|
|
|
|
};
|
|
|
|
hardware.firmware = [ pkgs.xow_dongle-firmware ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with lib.maintainers; [ rhysmdnz ];
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|