depot/third_party/nixpkgs/nixos/modules/hardware/xone.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

21 lines
508 B
Nix

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