Skip to content

Instantly share code, notes, and snippets.

@betaboon
Created June 13, 2020 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betaboon/8ca8188c89a558baa20e4e910a118f12 to your computer and use it in GitHub Desktop.
Save betaboon/8ca8188c89a558baa20e4e910a118f12 to your computer and use it in GitHub Desktop.
udev-rules
{ config, ... }:
{
users.extraUsers.myUser.extraGroups = [ "hardwarehacking" ];
users.groups.hardwarehacking = {};
services.udev.extraRules = ''
# TL866A/CS
SUBSYSTEM=="usb", ATTR{idVendor}=="04d8", ATTR{idProduct}=="e11c", MODE="0660", GROUP="hardwarehacking"
# Shikra
SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6014", MODE="0660", GROUP="hardwarehacking", SYMLINK+="SHIKRA%n"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment