1 { config, pkgs, lib, ... }:
4 cfg = config.hardware.uinput;
6 options.hardware.uinput = {
7 enable = lib.mkEnableOption "uinput support";
10 config = lib.mkIf cfg.enable {
11 boot.kernelModules = [ "uinput" ];
13 users.groups.uinput = {};
15 services.udev.extraRules = ''
16 SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"