nixpkgs/nixos/modules/hardware/xone.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
591 B
Nix
Raw Permalink Normal View History

2022-02-20 12:25:42 +13:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.hardware.xone;
in
{
options.hardware.xone = {
enable = lib.mkEnableOption "the xone driver for Xbox One and Xbox Series X|S accessories";
2022-02-20 12:25:42 +13:00
};
config = lib.mkIf cfg.enable {
2022-02-20 12:25:42 +13:00
boot = {
blacklistedKernelModules = [
"xpad"
"mt76x2u"
];
extraModulePackages = with config.boot.kernelPackages; [ xone ];
};
hardware.firmware = [ pkgs.xow_dongle-firmware ];
hardware.xpad-noone.enable = lib.mkDefault true;
2022-02-20 12:25:42 +13:00
};
meta = {
maintainers = with lib.maintainers; [ rhysmdnz ];
2022-02-20 12:25:42 +13:00
};
}