diff options
author | makefu <github@syntax-fehler.de> | 2023-02-27 13:37:35 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2023-02-27 13:37:35 +0100 |
commit | d2323ce90caba5ce212c9b83869006db695a9132 (patch) | |
tree | e96b87374906d9626fad5dd8fa72767b7e9324da /2configs | |
parent | d6b4f2df7daeca22e8d68b200bc91271ce599146 (diff) |
ma wbob.r: use new zigbee stick
Diffstat (limited to '2configs')
-rw-r--r-- | 2configs/bureautomation/zigbee2mqtt/default.nix | 5 | ||||
-rw-r--r-- | 2configs/hw/slaesh.nix | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/2configs/bureautomation/zigbee2mqtt/default.nix b/2configs/bureautomation/zigbee2mqtt/default.nix index d42abd790..9bf587d56 100644 --- a/2configs/bureautomation/zigbee2mqtt/default.nix +++ b/2configs/bureautomation/zigbee2mqtt/default.nix @@ -5,16 +5,13 @@ let in { # symlink the zigbee controller - services.udev.extraRules = '' - SUBSYSTEM=="tty", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a8", SYMLINK+="cc2531", MODE="0660", GROUP="dialout" - ''; services.zigbee2mqtt = { enable = true; inherit dataDir; settings = { permit_join = true; - serial.port = "/dev/cc2531"; + serial.port = "/dev/zigbee"; homeassistant = true; frontend.port = 8521; }; diff --git a/2configs/hw/slaesh.nix b/2configs/hw/slaesh.nix new file mode 100644 index 000000000..1a7d053b9 --- /dev/null +++ b/2configs/hw/slaesh.nix @@ -0,0 +1,9 @@ +{ config, lib, pkgs, ... }: + +{ + + users.users.${config.krebs.build.user.name}.extraGroups = [ "dialout" ]; + services.udev.extraRules = '' + SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="zigbee", MODE="0660", GROUP="dailout" + ''; +} |