Will Fancher 55e8064b0b Revert "nixis/uinput: use a fixed GID for the uinput group"
This reverts commit 70119aa60f9e6b4fc129b34de481f1a79d47750b.
2024-12-23 01:21:59 -05:00

21 lines
406 B
Nix

{ config, lib, ... }:
let
cfg = config.hardware.uinput;
in
{
options.hardware.uinput = {
enable = lib.mkEnableOption "uinput support";
};
config = lib.mkIf cfg.enable {
boot.kernelModules = [ "uinput" ];
users.groups.uinput = { };
services.udev.extraRules = ''
SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"
'';
};
}