use cynthion from nixpkgs
This commit is contained in:
parent
e84ae57f66
commit
91bcf2b4f1
7
externals/rules/cynthion.nix
vendored
Normal file
7
externals/rules/cynthion.nix
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ writeTextFile }:
|
||||||
|
|
||||||
|
writeTextFile {
|
||||||
|
name = "cynthion-udev-rules";
|
||||||
|
text = builtins.readFile ./cynthion.rules;
|
||||||
|
destination = "/etc/udev/rules.d/54-cynthion.rules";
|
||||||
|
}
|
16
externals/rules/cynthion.rules
vendored
Normal file
16
externals/rules/cynthion.rules
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# Configures Linux to allow access to Cynthion hardware for anyone logged into the physical terminal.
|
||||||
|
#
|
||||||
|
# # install udev rules
|
||||||
|
# sudo cp 54-cynthion.rules /etc/udev/rules.d
|
||||||
|
#
|
||||||
|
# # reload udev rules
|
||||||
|
# sudo udevadm control --reload
|
||||||
|
#
|
||||||
|
# # apply udev rules to any devices that are already plugged in
|
||||||
|
# sudo udevadm trigger
|
||||||
|
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="615b", SYMLINK+="cynthion-%k", TAG+="uaccess"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="615c", SYMLINK+="cynthion-apollo-%k", TAG+="uaccess"
|
||||||
|
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="000a", SYMLINK+="cynthion-test-%k", TAG+="uaccess"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="000e", SYMLINK+="cynthion-example-%k", TAG+="uaccess"
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
services.udev.packages = with pkgs; [
|
services.udev.packages = with pkgs; [
|
||||||
(callPackage ../externals/rules/adafruit.nix { })
|
(callPackage ../externals/rules/adafruit.nix { })
|
||||||
|
(callPackage ../externals/rules/cynthion.nix { })
|
||||||
(callPackage ../externals/rules/limesuite.nix { })
|
(callPackage ../externals/rules/limesuite.nix { })
|
||||||
glasgow
|
glasgow
|
||||||
libsigrok
|
libsigrok
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
cynthion
|
||||||
glasgow
|
glasgow
|
||||||
jlink
|
jlink
|
||||||
kicad
|
kicad
|
||||||
|
|
Loading…
Reference in a new issue