summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-06-29 12:28:28 -0400
committerBen Sima <ben@bsima.me>2022-06-29 12:28:35 -0400
commit48f5c43e62497f58a90353d21fddf0c176375ade (patch)
tree3486873aef622604c25c69f61973fa57d0988550 /machines
parent5884830599d0906a5c60c9f163f0e40059bcce4e (diff)
add flipper
Diffstat (limited to 'machines')
-rw-r--r--machines/helium.nix7
1 files changed, 6 insertions, 1 deletions
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" = {