Fix duplicate port check
This commit is contained in:
parent
48e71f75f8
commit
6f01431032
39 changed files with 132 additions and 158 deletions
|
|
@ -1,16 +1,16 @@
|
|||
{lib, ...}:
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options.networking.ports = with lib; with lib.types; mkOption {
|
||||
type = attrsOf (types.submodule {
|
||||
options = {
|
||||
tcp = mkOption {
|
||||
type = oneOf [ port (listOf port) (attrsOf port) (listOf (attrsOf lib.types.port)) ];
|
||||
type = oneOf [ port (listOf port) (attrsOf port) ];
|
||||
description = "TCP ports";
|
||||
default = [ ];
|
||||
};
|
||||
udp = mkOption {
|
||||
type = oneOf [ port (listOf port) (attrsOf port) (listOf (attrsOf lib.types.port)) ];
|
||||
type = oneOf [ port (listOf port) (attrsOf port) ];
|
||||
description = "UDP ports";
|
||||
default = [ ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue