From 25747846df50b325dff966be67f64c2129e2f2d6 Mon Sep 17 00:00:00 2001 From: osbm Date: Sun, 10 Nov 2024 22:13:47 +0300 Subject: [PATCH] seperate out arduino --- common/arduino.nix | 12 ++++++++++++ hosts/tartarus/configuration.nix | 6 +----- 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 common/arduino.nix diff --git a/common/arduino.nix b/common/arduino.nix new file mode 100644 index 0000000..c916199 --- /dev/null +++ b/common/arduino.nix @@ -0,0 +1,12 @@ +{ pkgs, lib, config, ... }: { + + environment.systemPackages = with pkgs; [ + arduino-ide + adafruit-nrfutil + ]; + + services.udev.extraRules = '' + KERNEL=="ttyACM0", MODE="0666" + ''; + +} diff --git a/hosts/tartarus/configuration.nix b/hosts/tartarus/configuration.nix index 16793ff..6eb93c8 100644 --- a/hosts/tartarus/configuration.nix +++ b/hosts/tartarus/configuration.nix @@ -11,6 +11,7 @@ ../../common/nix-settings.nix ../../common/i18n.nix ../../common/python.nix + ../../common/arduino.nix ]; stylix.enable = true; @@ -85,7 +86,6 @@ obs-studio audacity pkgs-unstable.qbittorrent - arduino-ide ]; }; @@ -135,7 +135,6 @@ jq onefetch just - adafruit-nrfutil ]; # Some programs need SUID wrappers, can be configured further or are @@ -151,9 +150,6 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; - services.udev.extraRules = '' - KERNEL=="ttyACM0", MODE="0666" - ''; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ];