1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: add udev rules for probe-rs

This commit is contained in:
oddlama 2024-11-30 15:39:44 +01:00
parent db30ac20c1
commit 5d78bf6578
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 155 additions and 1 deletions

View file

@ -31,5 +31,11 @@ lib.optionalAttrs (!minimal) {
services.nixseparatedebuginfod.enable = true;
# For embedded development
services.udev.packages = [ pkgs.stlink ];
users.groups.plugdev = { };
services.udev.packages = [
(pkgs.runCommandLocal "probe-rs-udev-rules" { } ''
mkdir -p $out/lib/udev/rules.d
cp ${./69-probe-rs.rules} $out/lib/udev/rules.d/
'')
];
}