From 41e7eb0160ded3b336a7759a82dc8eba0379751b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 20 Jun 2022 09:32:12 +0200 Subject: nixos/modules/develop: add access to some development USB devices --- nixos/modules/develop.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nixos/modules/develop.nix b/nixos/modules/develop.nix index 2ddd928..54401ef 100644 --- a/nixos/modules/develop.nix +++ b/nixos/modules/develop.nix @@ -86,6 +86,17 @@ in { documentation.dev.enable = true; + services.udev.extraRules = '' + SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3748", MODE:="0660", GROUP="develop", SYMLINK+="stlinkv2_%n" + SUBSYSTEMS=="usb", ATTRS{idVendor}=="a600", ATTRS{idProduct}=="a003", MODE:="0660", GROUP="develop", SYMLINK+="aix_forte_%n" + SUBSYSTEMS=="usb", ATTRS{idVendor}=="1366", ATTRS{idProduct}=="0105", MODE:="0660", GROUP="develop", SYMLINK+="jlink_%n" + ''; + + users.groups.develop = { }; + users.users.cynerd.extraGroups = [ + "docker" "lxd" "develop" + ]; + }; } -- cgit v1.2.3