2019-05-10 08:12:27 +02:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.zmap;
|
|
|
|
in {
|
|
|
|
options.programs.zmap = {
|
2024-04-13 14:54:15 +02:00
|
|
|
enable = mkEnableOption "ZMap, a network scanner designed for Internet-wide network surveys";
|
2019-05-10 08:12:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|