# Module: Gaming Support # Description: Enables Steam and gamepad drivers (xpadneo for Xbox controllers) # Services: Steam, steam-hardware { config, lib, pkgs, ... }: { options.custom.gaming = { enable = lib.mkEnableOption "gaming support (Steam, gamepad drivers)"; enableXpadneo = lib.mkOption { type = lib.types.bool; default = true; description = "Enable xpadneo driver for Xbox controllers"; }; }; config = lib.mkIf config.custom.gaming.enable { hardware.steam-hardware.enable = true; programs.steam = { enable = true; }; boot.extraModulePackages = lib.mkIf config.custom.gaming.enableXpadneo [ pkgs.linuxPackages.xpadneo ]; }; }