4 cfg = config.hardware.uinput;
7 options.hardware.uinput = {
8 enable = lib.mkEnableOption "uinput support";
11 config = lib.mkIf cfg.enable {
12 boot.kernelModules = [ "uinput" ];
14 users.groups.uinput.gid = config.ids.gids.uinput;
16 services.udev.extraRules = ''
17 SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"