1 import ./make-test-python.nix ({ pkgs, lib, ... }:
4 nodes.machine = { pkgs, ... }:
6 systemd.services.dummy-serial = {
11 ExecStart = "${pkgs.socat}/bin/socat pty,link=/dev/ttyACM0,mode=666 pty,link=/dev/ttyACM1";
15 services.zigbee2mqtt = {
19 systemd.services.zigbee2mqtt.serviceConfig.DevicePolicy = lib.mkForce "auto";
23 machine.wait_for_unit("multi-user.target")
24 machine.wait_until_fails("systemctl status zigbee2mqtt.service")
26 "journalctl -eu zigbee2mqtt | grep 'Error: Inappropriate ioctl for device, cannot set'"
29 machine.log(machine.succeed("systemd-analyze security zigbee2mqtt.service"))