This commit is contained in:
Astro 2022-06-13 16:10:54 +02:00
parent c27a2615f2
commit 8cf9e40836
2 changed files with 6 additions and 3 deletions

View File

@ -85,9 +85,12 @@ in
users.users = {
# Allow access to printer serial port and GPIO
"${config.services.octoprint.user}".extraGroups = [ "dialout" "gpio" ];
"${config.services.octoprint.user}".extraGroups = [ "dialout" ];
# Allow gpio group to access GPIO devices
gpio = { };
gpio = {
isNormalUser = true;
group = "gpio";
};
};
services = {

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "Mictronics";
repo = name;
repo = pname;
# branch "dev" as of 2021-12-10
rev = "b6c1bebc77d80a9366e31c13c73eea95e7a9296a";
sha256 = "0vg37cngbvahwb8wc6j5i605d8fn4ck0szy13xzw5b3q61aqvaqv";