Add udev rules for ST-Link

This commit is contained in:
Simon Bruder 2020-09-10 15:12:31 +02:00
parent a6466b279a
commit 5368f3d28c
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 8 additions and 0 deletions

7
modules/udev.nix Normal file
View file

@ -0,0 +1,7 @@
{
services.udev.extraRules = ''
# ST-Link
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", \
MODE:="0666"
'';
}

View file

@ -10,5 +10,6 @@
../modules/locales.nix
../modules/prometheus/node_exporter.nix
../modules/ssh.nix
../modules/udev.nix
];
}