nixos/octoprint: allow access to serial devices

Printers are usually connected over USB to serial interfaces that are
mounted as tty character devices owned by the dialout group. Add our
octoprint service to this group at runtime to allow access to these
printers.
This commit is contained in:
Martin Weinelt
2021-08-24 03:00:39 +02:00
parent 53fdb18b41
commit f8df760668
@@ -122,6 +122,9 @@ in
ExecStart = "${pluginsEnv}/bin/octoprint serve -b ${cfg.stateDir}";
User = cfg.user;
Group = cfg.group;
SupplementaryGroups = [
"dialout"
];
};
};