1 { config, lib, pkgs, ... }:
4 cfg = config.hardware.steam-hardware;
9 options.hardware.steam-hardware = {
10 enable = lib.mkOption {
11 type = lib.types.bool;
13 description = "Enable udev rules for Steam hardware such as the Steam Controller, other supported controllers and the HTC Vive";
17 config = lib.mkIf cfg.enable {
18 services.udev.packages = [
19 pkgs.steamPackages.steam
22 # The uinput module needs to be loaded in order to trigger the udev rules
23 # defined in the steam package for setting permissions on /dev/uinput.
25 # If the udev rules are not triggered, some controllers won't work with
27 boot.kernelModules = [ "uinput" ];