add Planck EZ udev rules

This commit is contained in:
Felix Schröter 2019-10-21 16:55:37 +02:00 committed by Felix Schröter
parent 4b9a3f0d53
commit d8fd45187e
3 changed files with 12 additions and 0 deletions

10
common/planck.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
services.udev.extraRules = ''
# STM32 rules for the Planck EZ Standard / Glow
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", \
MODE:="0666", \
SYMLINK+="stm32_dfu"
'';
}