2024-09-13 09:32:10 +02:00
|
|
|
{ lib, ... }:
|
|
|
|
with lib;
|
|
|
|
with types;
|
|
|
|
{
|
2024-09-14 02:09:41 +02:00
|
|
|
# todo add commad option
|
|
|
|
# todo add remote command option
|
2024-09-13 09:32:10 +02:00
|
|
|
options.verify.closed = mkOption {
|
|
|
|
default = { };
|
|
|
|
type = attrsOf (submodule {
|
|
|
|
options = {
|
|
|
|
domain = mkOption {
|
|
|
|
type = str;
|
|
|
|
description = ''
|
|
|
|
domain to scan
|
|
|
|
'';
|
|
|
|
};
|
2024-09-13 09:36:17 +02:00
|
|
|
# todo: make this an attrs so I know why port xyz should be closed.
|
2024-09-13 09:32:10 +02:00
|
|
|
ports = mkOption {
|
2024-09-14 02:09:41 +02:00
|
|
|
default = { };
|
2024-09-14 01:02:32 +02:00
|
|
|
type = attrsOf (listOf int);
|
2024-09-13 09:32:10 +02:00
|
|
|
description = ''
|
|
|
|
ports that should be closed
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|