nixis/uinput: use a fixed GID for the uinput group

This commit is contained in:
r-vdp 2024-08-10 21:32:37 +02:00
parent 469f505813
commit 70119aa60f
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ in
config = lib.mkIf cfg.enable {
boot.kernelModules = [ "uinput" ];
users.groups.uinput = {};
users.groups.uinput.gid = config.ids.gids.uinput;
services.udev.extraRules = ''
SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"

View File

@ -665,6 +665,7 @@ in
rstudio-server = 324;
localtimed = 325;
automatic-timezoned = 326;
uinput = 327;
# When adding a gid, make sure it doesn't match an existing
# uid. Users and groups with the same name should have equal