2019-05-10 06:12:27 +00:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.zmap;
|
|
|
|
in {
|
|
|
|
options.programs.zmap = {
|
2024-04-17 11:37:58 +00:00
|
|
|
enable = lib.mkEnableOption "ZMap, a network scanner designed for Internet-wide network surveys";
|
2019-05-10 06:12:27 +00:00
|
|
|
};
|
|
|
|
|
2024-04-17 11:37:58 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2019-05-10 06:12:27 +00:00
|
|
|
environment.systemPackages = [ pkgs.zmap ];
|
|
|
|
|
|
|
|
environment.etc."zmap/blacklist.conf".source = "${pkgs.zmap}/etc/zmap/blacklist.conf";
|
|
|
|
environment.etc."zmap/zmap.conf".source = "${pkgs.zmap}/etc/zmap.conf";
|
|
|
|
};
|
|
|
|
}
|