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
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -122,6 +122,9 @@ in
ExecStart = "${pluginsEnv}/bin/octoprint serve -b ${cfg.stateDir}";
User = cfg.user;
Group = cfg.group;
SupplementaryGroups = [
"dialout"
];
};
};