mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
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:
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"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue