at 24.11-pre 508 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4let 5 cfg = config.hardware.xone; 6in 7{ 8 options.hardware.xone = { 9 enable = mkEnableOption "the xone driver for Xbox One and Xbobx Series X|S accessories"; 10 }; 11 12 config = mkIf cfg.enable { 13 boot = { 14 blacklistedKernelModules = [ "xpad" "mt76x2u" ]; 15 extraModulePackages = with config.boot.kernelPackages; [ xone ]; 16 }; 17 hardware.firmware = [ pkgs.xow_dongle-firmware ]; 18 }; 19 20 meta = { 21 maintainers = with maintainers; [ rhysmdnz ]; 22 }; 23}