nixpkgs/nixos/modules/hardware/xone.nix

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

30 lines
538 B
Nix
Raw Normal View History

2022-02-19 23:25:42 +00: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-19 23:25:42 +00:00
};
config = lib.mkIf cfg.enable {
2022-02-19 23:25:42 +00:00
boot = {
blacklistedKernelModules = [
"xpad"
"mt76x2u"
];
extraModulePackages = with config.boot.kernelPackages; [ xone ];
};
hardware.firmware = [ pkgs.xow_dongle-firmware ];
};
meta = {
maintainers = with lib.maintainers; [ rhysmdnz ];
2022-02-19 23:25:42 +00:00
};
}