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 = [ ... ];