From f1bf6b9d9b928cb5f0af070839e3f6212a5b54a2 Mon Sep 17 00:00:00 2001 From: Nigel Choi <9gel@users.noreply.github.com> Date: Mon, 24 Jun 2024 21:16:30 +0800 Subject: [PATCH] Add groups so udev rules work in parity with official rpi --- rpi/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpi/default.nix b/rpi/default.nix index 66ad9e4..08ac59f 100644 --- a/rpi/default.nix +++ b/rpi/default.nix @@ -318,6 +318,8 @@ in }; hardware.enableRedistributableFirmware = true; + users.groups = builtins.listToAttrs (map (k: { name = k; value = {}; }) + ["input" "sudo" "plugdev" "games" "netdev" "gpio" "i2c" "spi"]); services = { udev.extraRules = let shell = "${pkgs.bash}/bin/bash";