Don't error if octoprint is disabled for testing
This commit is contained in:
parent
72c8847075
commit
398133fa93
|
@ -83,15 +83,19 @@
|
||||||
RestartSec = "1s";
|
RestartSec = "1s";
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users = {
|
users.users = lib.mkMerge [
|
||||||
# Allow access to printer serial port and GPIO
|
(lib.optionalAttrs config.services.octoprint.enable {
|
||||||
"${config.services.octoprint.user}".extraGroups = [ "dialout" ];
|
# Allow access to printer serial port and GPIO
|
||||||
# Allow gpio group to access GPIO devices
|
"${config.services.octoprint.user}".extraGroups = [ "dialout" ];
|
||||||
gpio = {
|
})
|
||||||
isNormalUser = true;
|
{
|
||||||
group = "gpio";
|
# Allow gpio group to access GPIO devices
|
||||||
};
|
gpio = {
|
||||||
};
|
isNormalUser = true;
|
||||||
|
group = "gpio";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# Do not log to flash:
|
# Do not log to flash:
|
||||||
|
|
Loading…
Reference in New Issue