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