services.esphome.allowedDevices
NixOS option
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.
type: list of stringDefault
[ "char-ttyS" "char-ttyUSB" ]
Example
declared in: nixos/modules/services/home-automation/esphome.nixView source on NixOS/nixpkgs →[ "/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0" ]