1 { config, lib, pkgs, ... }:
7 cfg = config.hardware.steam-hardware;
12 options.hardware.steam-hardware = {
16 description = lib.mdDoc "Enable udev rules for Steam hardware such as the Steam Controller, other supported controllers and the HTC Vive";
20 config = mkIf cfg.enable {
21 services.udev.packages = [
22 pkgs.steamPackages.steam
25 # The uinput module needs to be loaded in order to trigger the udev rules
26 # defined in the steam package for setting permissions on /dev/uinput.
28 # If the udev rules are not triggered, some controllers won't work with
30 boot.kernelModules = [ "uinput" ];