1 { pkgs, config, lib, ... }:
4 cfg = config.programs.zmap;
6 options.programs.zmap = {
7 enable = lib.mkEnableOption "ZMap, a network scanner designed for Internet-wide network surveys";
10 config = lib.mkIf cfg.enable {
11 environment.systemPackages = [ pkgs.zmap ];
13 environment.etc."zmap/blacklist.conf".source = "${pkgs.zmap}/etc/zmap/blacklist.conf";
14 environment.etc."zmap/zmap.conf".source = "${pkgs.zmap}/etc/zmap.conf";