From 0ca5e9e4aa190da2485e02e60a99c14bce61b921 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Fri, 24 Nov 2023 15:33:51 +0100 Subject: [PATCH] Fix creation of `/dev/ttyZigbee` on blowhole Signed-off-by: magic_rb --- nixos/systems/blowhole/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/systems/blowhole/default.nix b/nixos/systems/blowhole/default.nix index bc6e91d..17146d5 100644 --- a/nixos/systems/blowhole/default.nix +++ b/nixos/systems/blowhole/default.nix @@ -103,6 +103,7 @@ in devPath = "/dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_4c004e9c53c9eb118a9f8b4f1d69213e-if00-port0"; zigbeeScript = pkgs.writeShellScript "zigbeeScript" '' + touch /dev/ttyZigbee ${pkgs.lib.getExe' pkgs.utillinux "mount"} --bind \ "$(${pkgs.lib.getExe' pkgs.coreutils "readlink"} -f "${devPath}")" \ /dev/ttyZigbee