Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit b4ad649

Browse files
authored
Merge pull request #25 from 9gel/rpi-groups
Add groups so udev rules work in parity with official rpi
2 parents c92bd86 + f1bf6b9 commit b4ad649

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rpi/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ in
334334
};
335335
hardware.enableRedistributableFirmware = true;
336336

337+
users.groups = builtins.listToAttrs (map (k: { name = k; value = {}; })
338+
["input" "sudo" "plugdev" "games" "netdev" "gpio" "i2c" "spi"]);
337339
services = {
338340
udev.extraRules =
339341
let shell = "${pkgs.bash}/bin/bash";

0 commit comments

Comments
 (0)