Add udev rules for ST-Link

restic-rest-server
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
];
}