From 1b6875c312bf5a0a2444b8c086a7d12d087511eb Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 5 Jun 2025 03:43:02 +0200 Subject: Add general tooling for dealing with hardware and electronics Signed-off-by: Mel --- modules/electronics.nix | 60 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 modules/electronics.nix (limited to 'modules/electronics.nix') diff --git a/modules/electronics.nix b/modules/electronics.nix new file mode 100644 index 0000000..9b154b1 --- /dev/null +++ b/modules/electronics.nix @@ -0,0 +1,60 @@ +{ pkgs, unstablePkgs, ... }: + +let + inherit (pkgs) esp-idf-full; + inherit (unstablePkgs) + freecad + kicad + qucs-s + ngspice + librepcb + yosys + icestorm + arduino-cli + arduino-ide + platformio + avrdude + openocd + ; + + hantek = unstablePkgs.openhantek6022; + simulide = unstablePkgs.simulide_1_2_0; + nextpnr = unstablePkgs.nextpnrWithGui; +in +{ + # these packages include udev rules for access to their + # respective hardware devices. + services.udev.packages = [ + hantek + platformio + openocd + ]; + + environment.systemPackages = [ + # hardware tool support + hantek + + # the spice of life! + qucs-s + ngspice + simulide + librepcb + + # mostly bearable non-commercial cad software + freecad + kicad + + # fpga workings + nextpnr + yosys + icestorm + + # platform development tools and frameworks + arduino-cli + arduino-ide + platformio + esp-idf-full + avrdude + openocd + ]; +} -- cgit 1.4.1