nixos-config/nix/verify/module.nix
Ingolf Wagner 31d674132b
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 13m25s
verify closed ports script kinda works now.
2024-09-14 07:09:41 +07:00

29 lines
618 B
Nix

{ lib, ... }:
with lib;
with types;
{
# todo add commad option
# todo add remote command option
options.verify.closed = mkOption {
default = { };
type = attrsOf (submodule {
options = {
domain = mkOption {
type = str;
description = ''
domain to scan
'';
};
# todo: make this an attrs so I know why port xyz should be closed.
ports = mkOption {
default = { };
type = attrsOf (listOf int);
description = ''
ports that should be closed
'';
};
};
});
};
}