1 { config, lib, pkgs, ... }:
4 cfg = config.programs.minipro;
9 enable = lib.mkEnableOption "minipro" // {
11 Whether to enable minipro and its udev rules.
12 Users of the `plugdev` group can interact with connected MiniPRO chip programmers.
16 package = lib.mkPackageOption pkgs "minipro" { };
20 config = lib.mkIf cfg.enable {
21 users.groups.plugdev = { };
22 environment.systemPackages = [ cfg.package ];
23 services.udev.packages = [ cfg.package ];
27 maintainers = with lib.maintainers; [ infinidoge ];