From 48f5c43e62497f58a90353d21fddf0c176375ade Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 29 Jun 2022 12:28:28 -0400 Subject: add flipper --- machines/helium.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'machines') diff --git a/machines/helium.nix b/machines/helium.nix index 87e603c..494bb4e 100644 --- a/machines/helium.nix +++ b/machines/helium.nix @@ -135,7 +135,12 @@ in { # when yubi is removed, activate yubilock #ACTION=="remove", ENV{ID_BUS}=="usb", ENV{ID_VENDOR_ID}=="1050", ENV{ID_MODEL_ID}=="0407", ENV{ID_SERIAL}="Yubico_Yubikey_4_OTP+U2F+CCID", RUN+="${pkgs.systemd}/bin/systemctl start xlock" - ''; + + #Flipper Zero serial port + SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5740", ATTRS{manufacturer}=="Flipper Devices Inc.", TAG+="uaccess" + #Flipper Zero DFU + SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", ATTRS{manufacturer}=="STMicroelectronics", TAG+="uaccess" + ''; # flipper is not in 21.11: + "${pkgs.qFlipper}/etc/udev/rules.d/42-flipperzero.rules"; }; systemd.services = { "xlock" = { -- cgit v1.2.3