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