at 25.11-pre 406 B view raw
1{ config, lib, ... }: 2 3let 4 cfg = config.hardware.uinput; 5in 6{ 7 options.hardware.uinput = { 8 enable = lib.mkEnableOption "uinput support"; 9 }; 10 11 config = lib.mkIf cfg.enable { 12 boot.kernelModules = [ "uinput" ]; 13 14 users.groups.uinput = { }; 15 16 services.udev.extraRules = '' 17 SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput" 18 ''; 19 }; 20}