b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
18 lines
413 B
Nix
18 lines
413 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.zmap;
|
|
in {
|
|
options.programs.zmap = {
|
|
enable = mkEnableOption (lib.mdDoc "ZMap");
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|