MyNixOS website logo
option

services.esphome.allowedDevices

A list of device nodes to which esphome has access to. Refer to DeviceAllow in systemd.resource-control(5) for more information. Beware that if a device is referred to by an absolute path instead of a device category, it will only allow devices that already are plugged in when the service is started.

Declarations
Type
list of string
Default
[
  "char-ttyS"
  "char-ttyUSB"
]
Example
[
  "/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0"
]