{ lib, config, pkgs, ... }: let inherit (lib) mkIf mkOption types; in { options.smayzy.arduino.enable = mkOption { type = types.bool; default = false; description = "arduino ide"; }; config = mkIf config.smayzy.arduino.enable { environment.systemPackages = with pkgs; [ arduino-ide ]; }; }