2020-04-24 23:36:52 +00:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.zmap;
|
|
|
|
in {
|
|
|
|
options.programs.zmap = {
|
2024-05-15 15:35:15 +00:00
|
|
|
enable = lib.mkEnableOption "ZMap, a network scanner designed for Internet-wide network surveys";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2020-04-24 23:36:52 +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";
|
|
|
|
};
|
|
|
|
}
|